pub struct DidService {
pub id: String,
pub service_type: String,
pub service_endpoint: String,
}Fields§
§id: String§service_type: String§service_endpoint: StringImplementations§
Source§impl DidService
impl DidService
pub fn new( id: impl Into<String>, service_type: impl Into<String>, service_endpoint: impl Into<String>, ) -> Result<Self, DidError>
pub fn receipt_log( did: &DidChio, ordinal: usize, service_endpoint: impl Into<String>, ) -> Result<Self, DidError>
pub fn passport_status( did: &DidChio, ordinal: usize, service_endpoint: impl Into<String>, ) -> Result<Self, DidError>
Trait Implementations§
Source§impl Clone for DidService
impl Clone for DidService
Source§fn clone(&self) -> DidService
fn clone(&self) -> DidService
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 DidService
impl Debug for DidService
Source§impl<'de> Deserialize<'de> for DidService
impl<'de> Deserialize<'de> for DidService
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
impl Eq for DidService
Source§impl PartialEq for DidService
impl PartialEq for DidService
Source§impl Serialize for DidService
impl Serialize for DidService
impl StructuralPartialEq for DidService
Auto Trait Implementations§
impl Freeze for DidService
impl RefUnwindSafe for DidService
impl Send for DidService
impl Sync for DidService
impl Unpin for DidService
impl UnsafeUnpin for DidService
impl UnwindSafe for DidService
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