Struct kube_core::dynamic::DynamicObject
source · [−]pub struct DynamicObject {
pub types: Option<TypeMeta>,
pub metadata: ObjectMeta,
pub data: Value,
}
Expand description
A dynamic representation of a kubernetes object
This will work with any non-list type object.
Fields
types: Option<TypeMeta>
The type fields, not always present
metadata: ObjectMeta
Object metadata
data: Value
All other keys
Implementations
sourceimpl DynamicObject
impl DynamicObject
Trait Implementations
sourceimpl Clone for DynamicObject
impl Clone for DynamicObject
sourcefn clone(&self) -> DynamicObject
fn clone(&self) -> DynamicObject
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DynamicObject
impl Debug for DynamicObject
sourceimpl<'de> Deserialize<'de> for DynamicObject
impl<'de> Deserialize<'de> for DynamicObject
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 Resource for DynamicObject
impl Resource for DynamicObject
type DynamicType = ApiResource
type DynamicType = ApiResource
Type information for types that do not know their resource information at compile time. Read more
type Scope = DynamicResourceScope
type Scope = DynamicResourceScope
Type information for the api scope of the resource when known at compile time Read more
sourcefn group(dt: &ApiResource) -> Cow<'_, str>
fn group(dt: &ApiResource) -> Cow<'_, str>
Returns group of this object
sourcefn version(dt: &ApiResource) -> Cow<'_, str>
fn version(dt: &ApiResource) -> Cow<'_, str>
Returns version of this object
sourcefn kind(dt: &ApiResource) -> Cow<'_, str>
fn kind(dt: &ApiResource) -> Cow<'_, str>
Returns kind of this object
sourcefn api_version(dt: &ApiResource) -> Cow<'_, str>
fn api_version(dt: &ApiResource) -> Cow<'_, str>
Returns apiVersion of this object
sourcefn meta(&self) -> &ObjectMeta
fn meta(&self) -> &ObjectMeta
Metadata that all persisted resources must have
sourcefn meta_mut(&mut self) -> &mut ObjectMeta
fn meta_mut(&mut self) -> &mut ObjectMeta
Metadata that all persisted resources must have
sourcefn url_path(dt: &Self::DynamicType, namespace: Option<&str>) -> String
fn url_path(dt: &Self::DynamicType, namespace: Option<&str>) -> String
Creates a url path for http requests for this resource
sourcefn object_ref(&self, dt: &Self::DynamicType) -> ObjectReference
fn object_ref(&self, dt: &Self::DynamicType) -> ObjectReference
Generates an object reference for the resource
sourcefn controller_owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
fn controller_owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
Generates a controller owner reference pointing to this resource Read more
sourceimpl Serialize for DynamicObject
impl Serialize for DynamicObject
Auto Trait Implementations
impl RefUnwindSafe for DynamicObject
impl Send for DynamicObject
impl Sync for DynamicObject
impl Unpin for DynamicObject
impl UnwindSafe for DynamicObject
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