Struct identity_iota::client::DocumentHistory
source · [−]pub struct DocumentHistory {
pub integration_chain_data: Vec<ResolvedIotaDocument, Global>,
pub integration_chain_spam: Vec<MessageId, Global>,
pub diff_chain_data: Vec<DiffMessage, Global>,
pub diff_chain_spam: Vec<MessageId, Global>,
}
Expand description
A DID Document’s history and current state.
Fields
integration_chain_data: Vec<ResolvedIotaDocument, Global>
List of integration chain documents.
integration_chain_spam: Vec<MessageId, Global>
List of “spam” messages on the integration chain index.
diff_chain_data: Vec<DiffMessage, Global>
diff chain features are slated for removal
List of diffs for the last integration chain document.
diff_chain_spam: Vec<MessageId, Global>
diff chain features are slated for removal
List of “spam” messages on the diff chain index.
Implementations
sourceimpl DocumentHistory
impl DocumentHistory
sourcepub async fn read(
client: &Client,
did: &IotaDID
) -> Result<DocumentHistory, Error>
pub async fn read(
client: &Client,
did: &IotaDID
) -> Result<DocumentHistory, Error>
Read the DocumentHistory
of the DID Document identified by the given IotaDID
from the
Tangle.
Trait Implementations
sourceimpl Clone for DocumentHistory
impl Clone for DocumentHistory
sourcefn clone(&self) -> DocumentHistory
fn clone(&self) -> DocumentHistory
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 DocumentHistory
impl Debug for DocumentHistory
sourceimpl<'de> Deserialize<'de> for DocumentHistory
impl<'de> Deserialize<'de> for DocumentHistory
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<DocumentHistory, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DocumentHistory, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for DocumentHistory
impl Serialize for DocumentHistory
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
Auto Trait Implementations
impl RefUnwindSafe for DocumentHistory
impl Send for DocumentHistory
impl Sync for DocumentHistory
impl Unpin for DocumentHistory
impl UnwindSafe for DocumentHistory
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