pub struct Metadata {
pub core: Vec<CoreMetadata>,
}
Fields
core: Vec<CoreMetadata>
Implementations
sourceimpl Metadata
impl Metadata
pub fn get_tombstone(&self) -> Option<PrimaryKey>
pub fn add_tombstone(&mut self, key: PrimaryKey)
sourceimpl Metadata
impl Metadata
pub fn for_data(key: PrimaryKey) -> Metadata
pub fn get_data_key(&self) -> Option<PrimaryKey>
pub fn set_data_key(&mut self, key: PrimaryKey)
sourceimpl Metadata
impl Metadata
pub fn get_parent(&self) -> Option<&MetaParent>
pub fn get_collections(&self) -> Vec<MetaCollection>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn get_confidentiality(&self) -> Option<&MetaConfidentiality>
pub fn generate_iv(&mut self) -> InitializationVector
pub fn get_iv(&self) -> Result<&InitializationVector, CryptoError>
pub fn needs_signature(&self) -> bool
pub fn strip_signatures(&mut self)
pub fn strip_public_keys(&mut self)
pub fn get_sign_with(&self) -> Option<&MetaSignWith>
pub fn get_timestamp(&self) -> Option<&ChainTimestamp>
pub fn get_type_name(&self) -> Option<&MetaType>
pub fn get_public_key(&self) -> Option<&PublicSignKey>
pub fn is_of_type<T: ?Sized>(&self) -> bool
pub fn set_type_name<T: ?Sized>(&mut self)
pub fn is_reply_to_what(&self) -> Option<PrimaryKey>
pub fn get_delayed_upload(&self) -> Option<MetaDelayedUpload>
pub fn include_in_history(&self) -> bool
pub fn is_empty(&self) -> bool
sourceimpl Metadata
impl Metadata
pub fn add_signature(&mut self, _sig: MetaSignature)
pub fn get_signature<'a>(&'a self) -> Option<&'a MetaSignature>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more