Struct DomainAgreement
pub struct DomainAgreement { /* private fields */ }Expand description
Domain Agreement struct that defines the terms of service between a domain operator and the delta network.
Implementations§
§impl DomainAgreement
impl DomainAgreement
pub const fn new(
operator: PubKey,
shard: NonZero<u64>,
local_laws_vkey: Option<HashDigest>,
) -> DomainAgreement
pub const fn new( operator: PubKey, shard: NonZero<u64>, local_laws_vkey: Option<HashDigest>, ) -> DomainAgreement
Creates a new Domain Agreement
§Arguments
operator- public key of the domain operatorshard- shard identifier of the domain (must be > 0)local_laws_vkey- verification key for the local laws applying to the domain
pub const fn local_laws_vkey(&self) -> Option<HashDigest>
pub const fn local_laws_vkey(&self) -> Option<HashDigest>
Returns the optional hash of the verifying key for the local laws of this domain
Trait Implementations§
§impl Clone for DomainAgreement
impl Clone for DomainAgreement
§fn clone(&self) -> DomainAgreement
fn clone(&self) -> DomainAgreement
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 more§impl Debug for DomainAgreement
impl Debug for DomainAgreement
§impl<'de> Deserialize<'de> for DomainAgreement
impl<'de> Deserialize<'de> for DomainAgreement
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DomainAgreement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DomainAgreement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for DomainAgreement
impl Display for DomainAgreement
§impl PartialEq for DomainAgreement
impl PartialEq for DomainAgreement
§impl Serialize for DomainAgreement
impl Serialize for DomainAgreement
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryFrom<DomainAgreement> for DomainAgreement
impl TryFrom<DomainAgreement> for DomainAgreement
§fn try_from(
wire: DomainAgreement,
) -> Result<DomainAgreement, <DomainAgreement as TryFrom<DomainAgreement>>::Error>
fn try_from( wire: DomainAgreement, ) -> Result<DomainAgreement, <DomainAgreement as TryFrom<DomainAgreement>>::Error>
Performs the conversion.
impl Copy for DomainAgreement
impl Eq for DomainAgreement
impl StructuralPartialEq for DomainAgreement
Auto Trait Implementations§
impl Freeze for DomainAgreement
impl RefUnwindSafe for DomainAgreement
impl Send for DomainAgreement
impl Sync for DomainAgreement
impl Unpin for DomainAgreement
impl UnwindSafe for DomainAgreement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request