Struct fluvio::metadata::store::k8::K8MetaItem

source ·
pub struct K8MetaItem { /* private fields */ }

Implementations§

source§

impl K8MetaItem

source

pub fn new<S>(name: S, name_space: S) -> K8MetaItem
where S: Into<String>,

source

pub fn inner(&self) -> &ObjectMeta

source

pub fn revision(&self) -> u64

Methods from Deref<Target = ObjectMeta>§

source

pub fn make_owner_reference<S>(&self) -> OwnerReferences
where S: Spec,

create owner references point to this metadata if name or uid doesn’t exists return none

source

pub fn namespace(&self) -> &str

source

pub fn make_child_input_metadata<S>(&self, childname: String) -> InputObjectMeta
where S: Spec,

create child references that points to this

source

pub fn as_input(&self) -> InputObjectMeta

source

pub fn as_item(&self) -> ItemMeta

source

pub fn as_update(&self) -> UpdateItemMeta

Trait Implementations§

source§

impl Clone for K8MetaItem

source§

fn clone(&self) -> K8MetaItem

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for K8MetaItem

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for K8MetaItem

source§

fn default() -> K8MetaItem

Returns the “default value” for a type. Read more
source§

impl Deref for K8MetaItem

§

type Target = ObjectMeta

The resulting type after dereferencing.
source§

fn deref(&self) -> &<K8MetaItem as Deref>::Target

Dereferences the value.
source§

impl DerefMut for K8MetaItem

source§

fn deref_mut(&mut self) -> &mut <K8MetaItem as Deref>::Target

Mutably dereferences the value.
source§

impl MetadataItem for K8MetaItem

source§

fn get_labels(&self) -> HashMap<String, String>

get string labels

§

type UId = String

source§

fn uid(&self) -> &<K8MetaItem as MetadataItem>::UId

source§

fn is_newer(&self, another: &K8MetaItem) -> bool

checkif item is newer
source§

fn is_being_deleted(&self) -> bool

if object is process of being deleted
source§

fn set_labels<T>(self, labels: Vec<(T, T)>) -> K8MetaItem
where T: Into<String>,

set string labels
source§

fn owner(&self) -> Option<&K8MetaItem>

source§

fn set_owner(&mut self, owner: K8MetaItem)

source§

fn children(&self) -> Option<&HashMap<String, Vec<Self>>>

source§

fn set_children(&mut self, _children: HashMap<String, Vec<Self>>)

source§

impl PartialEq for K8MetaItem

for sake of comparison, we only care about couple of fields in the metadata

source§

fn eq(&self, other: &K8MetaItem) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<ObjectMeta> for K8MetaItem

§

type Error = ParseIntError

The type returned in the event of a conversion error.
source§

fn try_from( value: ObjectMeta ) -> Result<K8MetaItem, <K8MetaItem as TryFrom<ObjectMeta>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> AsyncConnector for T
where T: Send + Sync,