[−]Struct fluvio_sc::dispatcher::k8::app::core::metadata::ObjectMeta
metadata associated with object when returned here name and namespace must be populated
Fields
name: String
namespace: String
uid: String
self_link: 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, RandomState>
owner_references: Vec<OwnerReferences, Global>
annotations: HashMap<String, String, RandomState>
finalizers: Vec<String, Global>
Implementations
impl ObjectMeta
pub fn new<S>(name: S, name_space: S) -> ObjectMeta where
S: Into<String>,
S: Into<String>,
pub fn set_labels<T>(self, labels: Vec<(T, T), Global>) -> ObjectMeta where
T: Into<String>,
T: Into<String>,
provide builder pattern setter
pub fn named<S>(name: S) -> ObjectMeta where
S: Into<String>,
S: Into<String>,
create with name and default namespace
pub fn make_owner_reference<S>(&self) -> OwnerReferences where
S: Spec,
S: Spec,
create owner references point to this metadata if name or uid doesn't exists return none
pub fn namespace(&self) -> &str
pub fn make_child_input_metadata<S>(&self, childname: String) -> InputObjectMeta where
S: Spec,
S: Spec,
create child references that points to this
pub fn as_input(&self) -> InputObjectMeta
pub fn as_item(&self) -> ItemMeta
pub fn as_update(&self) -> UpdateItemMeta
Trait Implementations
impl Clone for ObjectMeta
pub fn clone(&self) -> ObjectMeta
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ObjectMeta
impl Default for ObjectMeta
pub fn default() -> ObjectMeta
impl<'de> Deserialize<'de> for ObjectMeta where
ObjectMeta: Default,
ObjectMeta: Default,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ObjectMeta, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<ObjectMeta, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl From<ObjectMeta> for InputObjectMeta
pub fn from(meta: ObjectMeta) -> InputObjectMeta
impl From<ObjectMeta> for ItemMeta
pub fn from(meta: ObjectMeta) -> ItemMeta
impl From<ObjectMeta> for UpdateItemMeta
pub fn from(meta: ObjectMeta) -> UpdateItemMeta
impl K8Meta for ObjectMeta
impl LabelProvider for ObjectMeta
pub fn set_label_map(
self,
labels: HashMap<String, String, RandomState>
) -> ObjectMeta
self,
labels: HashMap<String, String, RandomState>
) -> ObjectMeta
pub fn set_labels<T>(self, labels: Vec<(T, T), Global>) -> Self where
T: ToString,
T: ToString,
impl PartialEq<ObjectMeta> for ObjectMeta
pub fn eq(&self, other: &ObjectMeta) -> bool
pub fn ne(&self, other: &ObjectMeta) -> bool
impl Serialize for ObjectMeta
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for ObjectMeta
impl TryFrom<ObjectMeta> for K8MetaItem
[src]
type Error = ParseIntError
The type returned in the event of a conversion error.
pub fn try_from(
value: ObjectMeta
) -> Result<K8MetaItem, <K8MetaItem as TryFrom<ObjectMeta>>::Error>
[src]
value: ObjectMeta
) -> Result<K8MetaItem, <K8MetaItem as TryFrom<ObjectMeta>>::Error>
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> Erased for T
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> 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,