Struct kube_core::conversion::ConversionRequest
source · pub struct ConversionRequest {
pub types: Option<TypeMeta>,
pub uid: String,
pub desired_api_version: String,
pub objects: Vec<Value>,
}
Expand description
Part of ConversionReview which is set on input (i.e. generated by apiserver)
Fields§
§types: Option<TypeMeta>
TypeMeta
of the ConversionReview
this response was created from
This field dopied from the corresponding ConversionReview
.
It is not part of the Kubernetes API, it’s consumed only by kube
.
uid: String
Random uid uniquely identifying this conversion call
desired_api_version: String
The API group and version the objects should be converted to
objects: Vec<Value>
The list of objects to convert
Note that list may contain one or more objects, in one or more versions.
Implementations§
source§impl ConversionRequest
impl ConversionRequest
sourcepub fn from_review(
review: ConversionReview,
) -> Result<Self, ConvertConversionReviewError>
pub fn from_review( review: ConversionReview, ) -> Result<Self, ConvertConversionReviewError>
Extracts request from the ConversionReview
Trait Implementations§
source§impl<'de> Deserialize<'de> for ConversionRequest
impl<'de> Deserialize<'de> for ConversionRequest
source§fn 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
source§impl From<ConversionRequest> for ConversionResponse
impl From<ConversionRequest> for ConversionResponse
source§fn from(request: ConversionRequest) -> Self
fn from(request: ConversionRequest) -> Self
Converts to this type from the input type.
source§impl Serialize for ConversionRequest
impl Serialize for ConversionRequest
source§impl 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.
Auto Trait Implementations§
impl Freeze for ConversionRequest
impl RefUnwindSafe for ConversionRequest
impl Send for ConversionRequest
impl Sync for ConversionRequest
impl Unpin for ConversionRequest
impl UnwindSafe for ConversionRequest
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