pub struct SuccessResponse(Utf8CString);
Expand description
A Success Response from Arti, indicating that a request was successful.
This is the complete message, including id
and result
fields.
Tuple Fields§
§0: Utf8CString
Implementations§
Source§impl SuccessResponse
impl SuccessResponse
Sourcefn decode<D: DeserializeOwned>(&self) -> Result<D, Error>
fn decode<D: DeserializeOwned>(&self) -> Result<D, Error>
Helper: Decode the result
field of this response as an instance of D.
Trait Implementations§
Source§impl<__AsT: ?Sized> AsRef<__AsT> for SuccessResponsewhere
Utf8CString: AsRef<__AsT>,
impl<__AsT: ?Sized> AsRef<__AsT> for SuccessResponsewhere
Utf8CString: AsRef<__AsT>,
Source§impl Clone for SuccessResponse
impl Clone for SuccessResponse
Source§fn clone(&self) -> SuccessResponse
fn clone(&self) -> SuccessResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SuccessResponse
impl Debug for SuccessResponse
Source§impl From<SuccessResponse> for Utf8CString
impl From<SuccessResponse> for Utf8CString
Source§fn from(value: SuccessResponse) -> Self
fn from(value: SuccessResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SuccessResponse
impl RefUnwindSafe for SuccessResponse
impl Send for SuccessResponse
impl Sync for SuccessResponse
impl Unpin for SuccessResponse
impl UnwindSafe for SuccessResponse
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<T> AsUncased for T
impl<T> AsUncased for T
§fn as_uncased(&self) -> &UncasedStr
fn as_uncased(&self) -> &UncasedStr
Convert
self
to an [UncasedStr
].Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more