Struct k8_types::ObjectMeta [−][src]
pub struct ObjectMeta {Show 13 fields
pub name: String,
pub namespace: String,
pub uid: String,
pub creation_timestamp: String,
pub generation: Option<i32>,
pub resource_version: String,
pub cluster_name: Option<String>,
pub deletion_timestamp: Option<String>,
pub deletion_grace_period_seconds: Option<u32>,
pub labels: HashMap<String, String>,
pub owner_references: Vec<OwnerReferences>,
pub annotations: HashMap<String, String>,
pub finalizers: Vec<String>,
}
Expand description
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
provide builder pattern setter
create owner references point to this metadata if name or uid doesn’t exists return none
create child references that points to this
Trait Implementations
Returns the “default value” for a type. Read more
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ObjectMeta
impl Send for ObjectMeta
impl Sync for ObjectMeta
impl Unpin for ObjectMeta
impl UnwindSafe for ObjectMeta
Blanket Implementations
Mutably borrows from an owned value. Read more