Struct identity_iota::did::verifiable::DocumentSigner
source · [−]pub struct DocumentSigner<'base, 'query, D = CoreDID, T = BTreeMap<String, Value, Global>, U = BTreeMap<String, Value, Global>, V = BTreeMap<String, Value, Global>> where
D: DID + KeyComparable, { /* private fields */ }
Implementations
sourceimpl<'base, '_, D, T, U, V> DocumentSigner<'base, '_, D, T, U, V> where
D: DID + KeyComparable,
impl<'base, '_, D, T, U, V> DocumentSigner<'base, '_, D, T, U, V> where
D: DID + KeyComparable,
pub fn new(
document: &'base CoreDocument<D, T, U, V>,
private: &'base Key<Private>
) -> DocumentSigner<'base, '_, D, T, U, V>
sourcepub fn options(
self,
options: ProofOptions
) -> DocumentSigner<'base, '_, D, T, U, V>
pub fn options(
self,
options: ProofOptions
) -> DocumentSigner<'base, '_, D, T, U, V>
Overwrites the ProofOptions
.
sourcepub fn created(
self,
created: Timestamp
) -> DocumentSigner<'base, '_, D, T, U, V>
pub fn created(
self,
created: Timestamp
) -> DocumentSigner<'base, '_, D, T, U, V>
Sets the Proof::created
field.
sourcepub fn expires(
self,
expires: Timestamp
) -> DocumentSigner<'base, '_, D, T, U, V>
pub fn expires(
self,
expires: Timestamp
) -> DocumentSigner<'base, '_, D, T, U, V>
Sets the Proof::expires
field.
The signature will fail validation after the specified datetime.
sourcepub fn challenge(
self,
challenge: String
) -> DocumentSigner<'base, '_, D, T, U, V>
pub fn challenge(
self,
challenge: String
) -> DocumentSigner<'base, '_, D, T, U, V>
Sets the Proof::challenge
field.
sourcepub fn domain(self, domain: String) -> DocumentSigner<'base, '_, D, T, U, V>
pub fn domain(self, domain: String) -> DocumentSigner<'base, '_, D, T, U, V>
Sets the Proof::domain
field.
sourcepub fn purpose(
self,
purpose: ProofPurpose
) -> DocumentSigner<'base, '_, D, T, U, V>
pub fn purpose(
self,
purpose: ProofPurpose
) -> DocumentSigner<'base, '_, D, T, U, V>
Sets the Proof::purpose
field.
sourceimpl<'base, 'query, D, T, U, V> DocumentSigner<'base, 'query, D, T, U, V> where
D: DID + KeyComparable,
impl<'base, 'query, D, T, U, V> DocumentSigner<'base, 'query, D, T, U, V> where
D: DID + KeyComparable,
pub fn method<Q>(self, value: Q) -> DocumentSigner<'base, 'query, D, T, U, V> where
Q: Into<DIDUrlQuery<'query>>,
sourceimpl<'_, '_, D, T, U, V> DocumentSigner<'_, '_, D, T, U, V> where
D: DID + KeyComparable,
impl<'_, '_, D, T, U, V> DocumentSigner<'_, '_, D, T, U, V> where
D: DID + KeyComparable,
Auto Trait Implementations
impl<'base, 'query, D, T, U, V> RefUnwindSafe for DocumentSigner<'base, 'query, D, T, U, V> where
D: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
V: RefUnwindSafe,
impl<'base, 'query, D, T, U, V> Send for DocumentSigner<'base, 'query, D, T, U, V> where
D: Sync,
T: Sync,
U: Sync,
V: Sync,
impl<'base, 'query, D, T, U, V> Sync for DocumentSigner<'base, 'query, D, T, U, V> where
D: Sync,
T: Sync,
U: Sync,
V: Sync,
impl<'base, 'query, D, T, U, V> Unpin for DocumentSigner<'base, 'query, D, T, U, V>
impl<'base, 'query, D, T, U, V> UnwindSafe for DocumentSigner<'base, 'query, D, T, U, V> where
D: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
V: RefUnwindSafe,
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<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<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