Struct identity_iota::did::verifiable::VerifiableProperties
source · [−]pub struct VerifiableProperties<T = BTreeMap<String, Value, Global>> {
pub properties: T,
/* private fields */
}
Expand description
A generic container for a digital signature
and a set of properties.
Fields
properties: T
Implementations
sourceimpl<T> VerifiableProperties<T>
impl<T> VerifiableProperties<T>
sourcepub const fn new(properties: T) -> VerifiableProperties<T>
pub const fn new(properties: T) -> VerifiableProperties<T>
Creates a new Properties
object.
sourcepub const fn new_with_proof(
properties: T,
proof: Proof
) -> VerifiableProperties<T>
pub const fn new_with_proof(
properties: T,
proof: Proof
) -> VerifiableProperties<T>
Creates a new Properties
object with the given proof
.
Trait Implementations
sourceimpl<T> Clone for VerifiableProperties<T> where
T: Clone,
impl<T> Clone for VerifiableProperties<T> where
T: Clone,
sourcefn clone(&self) -> VerifiableProperties<T>
fn clone(&self) -> VerifiableProperties<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> Debug for VerifiableProperties<T> where
T: Debug,
impl<T> Debug for VerifiableProperties<T> where
T: Debug,
sourceimpl<T> Default for VerifiableProperties<T> where
T: Default,
impl<T> Default for VerifiableProperties<T> where
T: Default,
sourcefn default() -> VerifiableProperties<T>
fn default() -> VerifiableProperties<T>
Returns the “default value” for a type. Read more
sourceimpl<T> Deref for VerifiableProperties<T>
impl<T> Deref for VerifiableProperties<T>
sourceimpl<T> DerefMut for VerifiableProperties<T>
impl<T> DerefMut for VerifiableProperties<T>
sourcefn deref_mut(&mut self) -> &mut <VerifiableProperties<T> as Deref>::Target
fn deref_mut(&mut self) -> &mut <VerifiableProperties<T> as Deref>::Target
Mutably dereferences the value.
sourceimpl<'de, T> Deserialize<'de> for VerifiableProperties<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for VerifiableProperties<T> where
T: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<VerifiableProperties<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<VerifiableProperties<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> Diff for VerifiableProperties<T> where
T: Diff,
impl<T> Diff for VerifiableProperties<T> where
T: Diff,
NOTE: excludes the proof
Signature from the diff to save space on the Tangle and because
a merged signature will be invalid in general.
type Type = <T as Diff>::Type
type Type = <T as Diff>::Type
diff chain features are slated for removal
The Corresponding Diff Type for the implemented Type.
sourcefn diff(
&self,
other: &VerifiableProperties<T>
) -> Result<<VerifiableProperties<T> as Diff>::Type, Error>
fn diff(
&self,
other: &VerifiableProperties<T>
) -> Result<<VerifiableProperties<T> as Diff>::Type, Error>
diff chain features are slated for removal
Finds the difference between two types; self
and other
and returns Self::Type
sourcefn merge(
&self,
diff: <VerifiableProperties<T> as Diff>::Type
) -> Result<VerifiableProperties<T>, Error>
fn merge(
&self,
diff: <VerifiableProperties<T> as Diff>::Type
) -> Result<VerifiableProperties<T>, Error>
diff chain features are slated for removal
Merges a Self::Type
with Self
sourcefn from_diff(
diff: <VerifiableProperties<T> as Diff>::Type
) -> Result<VerifiableProperties<T>, Error>
fn from_diff(
diff: <VerifiableProperties<T> as Diff>::Type
) -> Result<VerifiableProperties<T>, Error>
diff chain features are slated for removal
Converts a diff
of type Self::Type
to a Self
.
sourceimpl<T> GetSignature for VerifiableProperties<T>
impl<T> GetSignature for VerifiableProperties<T>
sourceimpl<T> GetSignatureMut for VerifiableProperties<T>
impl<T> GetSignatureMut for VerifiableProperties<T>
sourcefn signature_mut(&mut self) -> Option<&mut Proof>
fn signature_mut(&mut self) -> Option<&mut Proof>
Returns a mutable reference to the Proof
object, if any.
sourceimpl<T> Ord for VerifiableProperties<T> where
T: Ord,
impl<T> Ord for VerifiableProperties<T> where
T: Ord,
sourceimpl<T> PartialEq<VerifiableProperties<T>> for VerifiableProperties<T> where
T: PartialEq<T>,
impl<T> PartialEq<VerifiableProperties<T>> for VerifiableProperties<T> where
T: PartialEq<T>,
sourcefn eq(&self, other: &VerifiableProperties<T>) -> bool
fn eq(&self, other: &VerifiableProperties<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VerifiableProperties<T>) -> bool
fn ne(&self, other: &VerifiableProperties<T>) -> bool
This method tests for !=
.
sourceimpl<T> PartialOrd<VerifiableProperties<T>> for VerifiableProperties<T> where
T: PartialOrd<T>,
impl<T> PartialOrd<VerifiableProperties<T>> for VerifiableProperties<T> where
T: PartialOrd<T>,
sourcefn partial_cmp(&self, other: &VerifiableProperties<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &VerifiableProperties<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<T> Serialize for VerifiableProperties<T> where
T: Serialize,
impl<T> Serialize for VerifiableProperties<T> where
T: Serialize,
sourcefn 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
sourceimpl<T> SetSignature for VerifiableProperties<T>
impl<T> SetSignature for VerifiableProperties<T>
sourcefn set_signature(&mut self, signature: Proof)
fn set_signature(&mut self, signature: Proof)
Sets the Proof
object of self
.
sourceimpl<T> TryMethod for VerifiableProperties<T>
impl<T> TryMethod for VerifiableProperties<T>
sourceconst TYPE: MethodUriType = MethodUriType::Relative
const TYPE: MethodUriType = MethodUriType::Relative
Flag that determines whether absolute or rleative URI
sourcefn method<D, U>(method: &VerificationMethod<D, U>) -> Option<String> where
D: DID,
fn method<D, U>(method: &VerificationMethod<D, U>) -> Option<String> where
D: DID,
Returns an absolute or relative method URI, if any, depending on the MethodUriType
. Read more
sourcefn try_method<D, U>(method: &VerificationMethod<D, U>) -> Result<String, Error> where
D: DID,
fn try_method<D, U>(method: &VerificationMethod<D, U>) -> Result<String, Error> where
D: DID,
Returns String representation of absolute or relative method URI. Read more
impl<T> Eq for VerifiableProperties<T> where
T: Eq,
impl<T> StructuralEq for VerifiableProperties<T>
impl<T> StructuralPartialEq for VerifiableProperties<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for VerifiableProperties<T> where
T: RefUnwindSafe,
impl<T> Send for VerifiableProperties<T> where
T: Send,
impl<T> Sync for VerifiableProperties<T> where
T: Sync,
impl<T> Unpin for VerifiableProperties<T> where
T: Unpin,
impl<T> UnwindSafe for VerifiableProperties<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> FromJson for T where
T: for<'de> Deserialize<'de>,
impl<T> FromJson for T where
T: for<'de> Deserialize<'de>,
sourcefn from_json(json: &impl AsRef<str>) -> Result<Self, Error>
fn from_json(json: &impl AsRef<str>) -> Result<Self, Error>
Deserialize Self
from a string of JSON text.
sourcefn from_json_slice(json: &impl AsRef<[u8]>) -> Result<Self, Error>
fn from_json_slice(json: &impl AsRef<[u8]>) -> Result<Self, Error>
Deserialize Self
from bytes of JSON text.
sourcefn from_json_value(json: Value) -> Result<Self, Error>
fn from_json_value(json: Value) -> Result<Self, Error>
Deserialize Self
from a [serde_json::Value
].
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T, U> Sponge for U where
T: Sponge,
U: DerefMut<Target = T>,
impl<T, U> Sponge for U where
T: Sponge,
U: DerefMut<Target = T>,
type Error = <T as Sponge>::Error
type Error = <T as Sponge>::Error
An error indicating that a failure has occured during a sponge operation.
fn reset(&mut self)
fn reset(&mut self)
Reset the inner state of the sponge.
fn absorb(
&mut self,
input: &Trits<T1B1<Btrit>>
) -> Result<(), <U as Sponge>::Error>
fn absorb(
&mut self,
input: &Trits<T1B1<Btrit>>
) -> Result<(), <U as Sponge>::Error>
Absorb input
into the sponge.
fn squeeze_into(
&mut self,
buf: &mut Trits<T1B1<Btrit>>
) -> Result<(), <U as Sponge>::Error>
fn squeeze_into(
&mut self,
buf: &mut Trits<T1B1<Btrit>>
) -> Result<(), <U as Sponge>::Error>
Squeeze the sponge into buf
.
fn squeeze(&mut self) -> Result<TritBuf<T1B1Buf<Btrit>>, Self::Error>
fn squeeze(&mut self) -> Result<TritBuf<T1B1Buf<Btrit>>, Self::Error>
Convenience function using Sponge::squeeze_into
to return an owned output.
fn digest_into(
&mut self,
input: &Trits<T1B1<Btrit>>,
buf: &mut Trits<T1B1<Btrit>>
) -> Result<(), Self::Error>
fn digest_into(
&mut self,
input: &Trits<T1B1<Btrit>>,
buf: &mut Trits<T1B1<Btrit>>
) -> Result<(), Self::Error>
Convenience function to absorb input
, squeeze the sponge into buf
, and reset the sponge.
sourceimpl<T> ToJson for T where
T: Serialize,
impl<T> ToJson for T where
T: Serialize,
sourcefn to_json_value(&self) -> Result<Value, Error>
fn to_json_value(&self) -> Result<Value, Error>
Serialize self
as a [serde_json::Value
].
sourcefn to_json_pretty(&self) -> Result<String, Error>
fn to_json_pretty(&self) -> Result<String, Error>
Serialize self
as a pretty-printed string of JSON.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more