pub struct DisplayName {
pub name: String,
pub source: NameSource,
}Expand description
A name for a DID, and the provenance of that name.
Fields§
§name: String§source: NameSourceImplementations§
Source§impl DisplayName
impl DisplayName
pub fn new(name: impl Into<String>, source: NameSource) -> Self
Sourcepub fn is_trusted(&self) -> bool
pub fn is_trusted(&self) -> bool
Trait Implementations§
Source§impl Clone for DisplayName
impl Clone for DisplayName
Source§fn clone(&self) -> DisplayName
fn clone(&self) -> DisplayName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayName
impl Debug for DisplayName
impl Eq for DisplayName
Source§impl PartialEq for DisplayName
impl PartialEq for DisplayName
Source§impl Serialize for DisplayName
impl Serialize for DisplayName
impl StructuralPartialEq for DisplayName
Auto Trait Implementations§
impl Freeze for DisplayName
impl RefUnwindSafe for DisplayName
impl Send for DisplayName
impl Sync for DisplayName
impl Unpin for DisplayName
impl UnsafeUnpin for DisplayName
impl UnwindSafe for DisplayName
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