pub enum DidController {
One(String),
Many(Vec<String>),
}Expand description
The controller property — either a single DID string or a set of DIDs.
Per W3C DID Core §5.1.2, the controller can be one or more DID strings. When multiple DIDs are listed, each controller independently has the authority to update or deactivate the subject DID.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DidController
impl Clone for DidController
Source§fn clone(&self) -> DidController
fn clone(&self) -> DidController
Returns a duplicate of the value. Read more
1.0.0 · 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 DidController
impl Debug for DidController
Source§impl<'de> Deserialize<'de> for DidController
impl<'de> Deserialize<'de> for DidController
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<String> for DidController
impl From<String> for DidController
Source§impl PartialEq for DidController
impl PartialEq for DidController
Source§impl Serialize for DidController
impl Serialize for DidController
impl StructuralPartialEq for DidController
Auto Trait Implementations§
impl Freeze for DidController
impl RefUnwindSafe for DidController
impl Send for DidController
impl Sync for DidController
impl Unpin for DidController
impl UnwindSafe for DidController
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