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
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for ConversionRequest
impl<'de> Deserialize<'de> for ConversionRequest
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<ConversionRequest> for ConversionResponse
impl From<ConversionRequest> for ConversionResponse
sourcefn from(request: ConversionRequest) -> Self
fn from(request: ConversionRequest) -> Self
Converts to this type from the input type.
sourceimpl Serialize for ConversionRequest
impl Serialize for ConversionRequest
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 ConversionRequest
impl Send for ConversionRequest
impl Sync for ConversionRequest
impl Unpin for ConversionRequest
impl UnwindSafe for ConversionRequest
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