Struct fluvio_stream_model::store::MetadataStoreObject
source · pub struct MetadataStoreObject<S, C>where
S: Spec,
C: MetadataItem,{
pub spec: S,
pub status: S::Status,
pub key: S::IndexKey,
pub ctx: MetadataContext<C>,
}
Fields§
§spec: S
§status: S::Status
§key: S::IndexKey
§ctx: MetadataContext<C>
Implementations§
source§impl<S, C> MetadataStoreObject<S, C>
impl<S, C> MetadataStoreObject<S, C>
pub fn new(key: impl Into<S::IndexKey>, spec: S, status: S::Status) -> Self
pub fn new_with_context( key: impl Into<S::IndexKey>, spec: S, ctx: MetadataContext<C>, ) -> Self
pub fn with_spec(key: impl Into<S::IndexKey>, spec: S) -> Selfwhere
C: Default,
pub fn with_key(key: impl Into<S::IndexKey>) -> Self
pub fn with_context(self, ctx: impl Into<MetadataContext<C>>) -> Self
pub fn key(&self) -> &S::IndexKey
pub fn key_owned(&self) -> S::IndexKey
pub fn my_key(self) -> S::IndexKey
pub fn spec(&self) -> &S
pub fn set_spec(&mut self, spec: S)
pub fn status(&self) -> &S::Status
pub fn set_status(&mut self, status: S::Status)
pub fn ctx(&self) -> &MetadataContext<C>
pub fn ctx_mut(&mut self) -> &mut MetadataContext<C>
pub fn ctx_owned(&self) -> MetadataContext<C>
pub fn set_ctx(&mut self, ctx: MetadataContext<C>)
pub fn parts(self) -> (S::IndexKey, S, S::Status, MetadataContext<C>)
sourcepub async fn childrens<T: Spec>(
&self,
child_stores: &LocalStore<T, C>,
) -> Vec<MetadataStoreObject<T, C>>
pub async fn childrens<T: Spec>( &self, child_stores: &LocalStore<T, C>, ) -> Vec<MetadataStoreObject<T, C>>
find children of this object
pub fn is_newer(&self, another: &Self) -> bool
source§impl<S, C> MetadataStoreObject<S, C>where
S: Spec,
C: MetadataRevExtension,
impl<S, C> MetadataStoreObject<S, C>where
S: Spec,
C: MetadataRevExtension,
Trait Implementations§
source§impl<S, C> Clone for MetadataStoreObject<S, C>
impl<S, C> Clone for MetadataStoreObject<S, C>
source§fn clone(&self) -> MetadataStoreObject<S, C>
fn clone(&self) -> MetadataStoreObject<S, C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S, C> Debug for MetadataStoreObject<S, C>
impl<S, C> Debug for MetadataStoreObject<S, C>
source§impl<S, C> DualDiff for MetadataStoreObject<S, C>
impl<S, C> DualDiff for MetadataStoreObject<S, C>
source§fn diff(&self, new_value: &Self) -> ChangeFlag
fn diff(&self, new_value: &Self) -> ChangeFlag
compute difference, in our case we take account of version as well
source§impl<S, C> From<MetadataStoreObject<S, C>> for (S::IndexKey, S, S::Status)where
S: Spec,
C: MetadataItem,
impl<S, C> From<MetadataStoreObject<S, C>> for (S::IndexKey, S, S::Status)where
S: Spec,
C: MetadataItem,
source§fn from(it: MetadataStoreObject<S, C>) -> Self
fn from(it: MetadataStoreObject<S, C>) -> Self
Converts to this type from the input type.
source§impl<S, C> PartialEq for MetadataStoreObject<S, C>
impl<S, C> PartialEq for MetadataStoreObject<S, C>
impl<S, C> StructuralPartialEq for MetadataStoreObject<S, C>where
S: Spec,
C: MetadataItem,
Auto Trait Implementations§
impl<S, C> Freeze for MetadataStoreObject<S, C>
impl<S, C> RefUnwindSafe for MetadataStoreObject<S, C>where
S: RefUnwindSafe,
<S as Spec>::Status: RefUnwindSafe,
<S as Spec>::IndexKey: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for MetadataStoreObject<S, C>
impl<S, C> Sync for MetadataStoreObject<S, C>
impl<S, C> Unpin for MetadataStoreObject<S, C>
impl<S, C> UnwindSafe for MetadataStoreObject<S, C>where
S: UnwindSafe,
<S as Spec>::Status: UnwindSafe,
<S as Spec>::IndexKey: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)