pub struct DomainLicence {Show 19 fields
pub format: String,
pub licence_id: String,
pub issuer_did: String,
pub issuer_pubkey_hex: String,
pub subject_domains: Vec<String>,
pub domain_did: String,
pub delegation: Option<Delegation>,
pub licensee_did: String,
pub licensee_agent_type: String,
pub licensee_label: String,
pub licence_class: String,
pub capability_scope: Vec<String>,
pub not_before_unix: u64,
pub expires_unix: u64,
pub payment_evidence: Option<PaymentEvidence>,
pub chain_anchors: Vec<ChainAnchor>,
pub revocation_uri: String,
pub terms_uri: String,
pub signature_hex: String,
}Expand description
A signed domain licence instrument (WIP §3).
Fields§
§format: String§licence_id: String§issuer_did: String§issuer_pubkey_hex: String§subject_domains: Vec<String>§domain_did: String§delegation: Option<Delegation>§licensee_did: String§licensee_agent_type: String§licensee_label: String§licence_class: String§capability_scope: Vec<String>§not_before_unix: u64§expires_unix: u64§payment_evidence: Option<PaymentEvidence>§chain_anchors: Vec<ChainAnchor>§revocation_uri: String§terms_uri: String§signature_hex: StringTrait Implementations§
Source§impl Clone for DomainLicence
impl Clone for DomainLicence
Source§impl Debug for DomainLicence
impl Debug for DomainLicence
Source§impl<'de> Deserialize<'de> for DomainLicence
impl<'de> Deserialize<'de> for DomainLicence
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 PartialEq for DomainLicence
impl PartialEq for DomainLicence
Source§impl Serialize for DomainLicence
impl Serialize for DomainLicence
impl StructuralPartialEq for DomainLicence
Auto Trait Implementations§
impl Freeze for DomainLicence
impl RefUnwindSafe for DomainLicence
impl Send for DomainLicence
impl Sync for DomainLicence
impl Unpin for DomainLicence
impl UnsafeUnpin for DomainLicence
impl UnwindSafe for DomainLicence
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more