pub struct DID<'a> {
pub common_fields: CommonFields<'a, NoFlags>,
pub account: Cow<'a, str>,
pub did_document: Option<Cow<'a, str>>,
pub data: Option<Cow<'a, str>>,
pub uri: Option<Cow<'a, str>>,
pub owner_node: Cow<'a, str>,
pub previous_txn_id: Cow<'a, str>,
pub previous_txn_lgr_seq: u32,
}Expand description
The DID object type holds references to, or data associated with, a single
Decentralized Identifier (DID).
<https://xrpl.org/docs/references/protocol/ledger-data/ledger-entry-types/did>
Fields§
§common_fields: CommonFields<'a, NoFlags>The base fields for all ledger object models.
See Ledger Object Common Fields:
<https://xrpl.org/ledger-entry-common-fields.html>
account: Cow<'a, str>The account that controls the DID.
did_document: Option<Cow<'a, str>>The W3C standard DID document associated with the DID. Limited to a maximum length of 256 bytes.
data: Option<Cow<'a, str>>The public attestations of identity credentials associated with the DID. Limited to a maximum length of 256 bytes.
uri: Option<Cow<'a, str>>The Universal Resource Identifier that points to the corresponding DID document or the data associated with the DID. Limited to a maximum length of 256 bytes.
owner_node: Cow<'a, str>A hint indicating which page of the owner directory links to this object.
previous_txn_id: Cow<'a, str>The identifying hash of the transaction that most recently modified this object.
previous_txn_lgr_seq: u32The index of the ledger that contains the transaction that most recently modified this object.
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for DID<'a>
impl<'de, 'a> Deserialize<'de> for DID<'a>
Source§fn 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>,
impl<'a> Eq for DID<'a>
Source§impl<'a> LedgerObject<NoFlags> for DID<'a>
impl<'a> LedgerObject<NoFlags> for DID<'a>
fn get_ledger_entry_type(&self) -> LedgerEntryType
fn has_flag(&self, flag: &T) -> bool
Source§impl<'a> Model for DID<'a>
impl<'a> Model for DID<'a>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
get_errors if there was one.impl<'a> StructuralPartialEq for DID<'a>
Auto Trait Implementations§
impl<'a> Freeze for DID<'a>
impl<'a> RefUnwindSafe for DID<'a>
impl<'a> Send for DID<'a>
impl<'a> Sync for DID<'a>
impl<'a> Unpin for DID<'a>
impl<'a> UnsafeUnpin for DID<'a>
impl<'a> UnwindSafe for DID<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.