pub struct ConversionReview {
pub types: TypeMeta,
pub request: Option<ConversionRequest>,
pub response: Option<ConversionResponse>,
}
Expand description
Struct that describes both request and response
Fields§
§types: TypeMeta
Contains the API version and type of the request
request: Option<ConversionRequest>
Contains conversion request
response: Option<ConversionResponse>
Contains conversion response
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ConversionReview
impl<'de> Deserialize<'de> for ConversionReview
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConversionReview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConversionReview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConversionResponse> for ConversionReview
impl From<ConversionResponse> for ConversionReview
Source§fn from(response: ConversionResponse) -> ConversionReview
fn from(response: ConversionResponse) -> ConversionReview
Converts to this type from the input type.
Source§impl Serialize for ConversionReview
impl Serialize for ConversionReview
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<ConversionReview> for ConversionRequest
impl TryFrom<ConversionReview> for ConversionRequest
Source§type Error = ConvertConversionReviewError
type Error = ConvertConversionReviewError
The type returned in the event of a conversion error.
Source§fn try_from(
review: ConversionReview,
) -> Result<ConversionRequest, <ConversionRequest as TryFrom<ConversionReview>>::Error>
fn try_from( review: ConversionReview, ) -> Result<ConversionRequest, <ConversionRequest as TryFrom<ConversionReview>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ConversionReview
impl RefUnwindSafe for ConversionReview
impl Send for ConversionReview
impl Sync for ConversionReview
impl Unpin for ConversionReview
impl UnwindSafe for ConversionReview
Blanket Implementations§
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