Struct identity_iota::iota_core::IotaDocumentMetadata
source · [−]pub struct IotaDocumentMetadata {
pub created: Option<Timestamp>,
pub updated: Option<Timestamp>,
pub previous_message_id: MessageId,
pub properties: BTreeMap<String, Value, Global>,
}
Expand description
Additional attributes related to an IOTA DID Document.
Fields
created: Option<Timestamp>
updated: Option<Timestamp>
previous_message_id: MessageId
properties: BTreeMap<String, Value, Global>
Implementations
sourceimpl IotaDocumentMetadata
impl IotaDocumentMetadata
sourcepub fn new() -> IotaDocumentMetadata
pub fn new() -> IotaDocumentMetadata
Creates a new IotaDocumentMetadata
with the current system datetime used for created
and
updated
timestamps.
Trait Implementations
sourceimpl Clone for IotaDocumentMetadata
impl Clone for IotaDocumentMetadata
sourcefn clone(&self) -> IotaDocumentMetadata
fn clone(&self) -> IotaDocumentMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IotaDocumentMetadata
impl Debug for IotaDocumentMetadata
sourceimpl Default for IotaDocumentMetadata
impl Default for IotaDocumentMetadata
sourcefn default() -> IotaDocumentMetadata
fn default() -> IotaDocumentMetadata
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for IotaDocumentMetadata
impl<'de> Deserialize<'de> for IotaDocumentMetadata
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<IotaDocumentMetadata, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<IotaDocumentMetadata, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Diff for IotaDocumentMetadata
impl Diff for IotaDocumentMetadata
type Type = DiffIotaDocumentMetadata
type Type = DiffIotaDocumentMetadata
diff chain features are slated for removal
The Corresponding Diff Type for the implemented Type.
sourcefn diff(
&self,
other: &IotaDocumentMetadata
) -> Result<<IotaDocumentMetadata as Diff>::Type, Error>
fn diff(
&self,
other: &IotaDocumentMetadata
) -> Result<<IotaDocumentMetadata as Diff>::Type, Error>
diff chain features are slated for removal
Finds the difference between two types; self
and other
and returns Self::Type
sourcefn merge(
&self,
diff: <IotaDocumentMetadata as Diff>::Type
) -> Result<IotaDocumentMetadata, Error>
fn merge(
&self,
diff: <IotaDocumentMetadata as Diff>::Type
) -> Result<IotaDocumentMetadata, Error>
diff chain features are slated for removal
Merges a Self::Type
with Self
sourcefn from_diff(
diff: <IotaDocumentMetadata as Diff>::Type
) -> Result<IotaDocumentMetadata, Error>
fn from_diff(
diff: <IotaDocumentMetadata as Diff>::Type
) -> Result<IotaDocumentMetadata, Error>
diff chain features are slated for removal
Converts a diff
of type Self::Type
to a Self
.
sourceimpl Display for IotaDocumentMetadata
impl Display for IotaDocumentMetadata
sourceimpl PartialEq<IotaDocumentMetadata> for IotaDocumentMetadata
impl PartialEq<IotaDocumentMetadata> for IotaDocumentMetadata
sourcefn eq(&self, other: &IotaDocumentMetadata) -> bool
fn eq(&self, other: &IotaDocumentMetadata) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IotaDocumentMetadata) -> bool
fn ne(&self, other: &IotaDocumentMetadata) -> bool
This method tests for !=
.
sourceimpl Serialize for IotaDocumentMetadata
impl Serialize for IotaDocumentMetadata
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IotaDocumentMetadata
Auto Trait Implementations
impl RefUnwindSafe for IotaDocumentMetadata
impl Send for IotaDocumentMetadata
impl Sync for IotaDocumentMetadata
impl Unpin for IotaDocumentMetadata
impl UnwindSafe for IotaDocumentMetadata
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> FromJson for T where
T: for<'de> Deserialize<'de>,
impl<T> FromJson for T where
T: for<'de> Deserialize<'de>,
sourcefn from_json(json: &impl AsRef<str>) -> Result<Self, Error>
fn from_json(json: &impl AsRef<str>) -> Result<Self, Error>
Deserialize Self
from a string of JSON text.
sourcefn from_json_slice(json: &impl AsRef<[u8]>) -> Result<Self, Error>
fn from_json_slice(json: &impl AsRef<[u8]>) -> Result<Self, Error>
Deserialize Self
from bytes of JSON text.
sourcefn from_json_value(json: Value) -> Result<Self, Error>
fn from_json_value(json: Value) -> Result<Self, Error>
Deserialize Self
from a [serde_json::Value
].
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> ToJson for T where
T: Serialize,
impl<T> ToJson for T where
T: Serialize,
sourcefn to_json_value(&self) -> Result<Value, Error>
fn to_json_value(&self) -> Result<Value, Error>
Serialize self
as a [serde_json::Value
].
sourcefn to_json_pretty(&self) -> Result<String, Error>
fn to_json_pretty(&self) -> Result<String, Error>
Serialize self
as a pretty-printed string of JSON.
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