[−][src]Struct k8_obj_metadata::ObjectMeta
metadata associated with object when returned here name and namespace must be populated
Fields
name: String
namespace: String
uid: String
creation_timestamp: String
generation: Option<i32>
resource_version: String
cluster_name: Option<String>
deletion_timestamp: Option<String>
deletion_grace_period_seconds: Option<u32>
labels: HashMap<String, String>
owner_references: Vec<OwnerReferences>
annotations: HashMap<String, String>
finalizers: Vec<String>
Implementations
impl ObjectMeta
[src]
pub fn new<S>(name: S, name_space: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn set_labels<T: Into<String>>(mut self: Self, labels: Vec<(T, T)>) -> Self
[src]
provide builder pattern setter
pub fn named<S>(name: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
create with name and default namespace
pub fn make_owner_reference<S: Spec>(&self) -> OwnerReferences
[src]
create owner references point to this metadata if name or uid doesn't exists return none
pub fn namespace(&self) -> &str
[src]
pub fn make_child_input_metadata<S: Spec>(
&self,
childname: String
) -> InputObjectMeta
[src]
&self,
childname: String
) -> InputObjectMeta
create child references that points to this
pub fn as_input(&self) -> InputObjectMeta
[src]
pub fn as_item(&self) -> ItemMeta
[src]
pub fn as_update(&self) -> UpdateItemMeta
[src]
Trait Implementations
impl Clone for ObjectMeta
[src]
pub fn clone(&self) -> ObjectMeta
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ObjectMeta
[src]
impl Default for ObjectMeta
[src]
pub fn default() -> ObjectMeta
[src]
impl<'de> Deserialize<'de> for ObjectMeta where
ObjectMeta: Default,
[src]
ObjectMeta: Default,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<ObjectMeta> for InputObjectMeta
[src]
pub fn from(meta: ObjectMeta) -> Self
[src]
impl From<ObjectMeta> for ItemMeta
[src]
pub fn from(meta: ObjectMeta) -> Self
[src]
impl From<ObjectMeta> for UpdateItemMeta
[src]
pub fn from(meta: ObjectMeta) -> Self
[src]
impl K8Meta for ObjectMeta
[src]
impl LabelProvider for ObjectMeta
[src]
pub fn set_label_map(mut self: Self, labels: HashMap<String, String>) -> Self
[src]
pub fn set_labels<T: ToString>(self, labels: Vec<(T, T)>) -> Self
[src]
impl PartialEq<ObjectMeta> for ObjectMeta
[src]
pub fn eq(&self, other: &ObjectMeta) -> bool
[src]
pub fn ne(&self, other: &ObjectMeta) -> bool
[src]
impl Serialize for ObjectMeta
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for ObjectMeta
[src]
Auto Trait Implementations
impl RefUnwindSafe for ObjectMeta
[src]
impl Send for ObjectMeta
[src]
impl Sync for ObjectMeta
[src]
impl Unpin for ObjectMeta
[src]
impl UnwindSafe for ObjectMeta
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,