Struct kube_core::conversion::ConversionReview
source · [−]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
sourceimpl<'de> Deserialize<'de> for ConversionReview
impl<'de> Deserialize<'de> for ConversionReview
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<ConversionResponse> for ConversionReview
impl From<ConversionResponse> for ConversionReview
sourcefn from(response: ConversionResponse) -> Self
fn from(response: ConversionResponse) -> Self
Converts to this type from the input type.
sourceimpl Serialize for ConversionReview
impl Serialize for ConversionReview
sourceimpl TryFrom<ConversionReview> for ConversionRequest
impl TryFrom<ConversionReview> for ConversionRequest
type Error = ConvertConversionReviewError
type Error = ConvertConversionReviewError
The type returned in the event of a conversion error.
sourcefn try_from(review: ConversionReview) -> Result<Self, Self::Error>
fn try_from(review: ConversionReview) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ConversionReview
impl Send for ConversionReview
impl Sync for ConversionReview
impl Unpin for ConversionReview
impl UnwindSafe for ConversionReview
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more