pub struct VerificationChallenge {
pub ecosystem: Ecosystem,
pub package_name: PackageName,
pub did: CanonicalDid,
pub token: VerificationToken,
pub instructions: String,
pub expires_at: DateTime<Utc>,
}Expand description
Challenge issued to a user to prove namespace ownership.
Usage:
ⓘ
let challenge = VerificationChallenge {
ecosystem: Ecosystem::Cargo,
package_name: PackageName::parse("my-crate")?,
did: CanonicalDid::parse("did:keri:abc123")?,
token: VerificationToken::parse("auths-verify-deadbeef")?,
instructions: "Add this token to your crate owners".to_string(),
expires_at: now + Duration::hours(1),
};Fields§
§ecosystem: EcosystemThe ecosystem for this challenge.
package_name: PackageNameThe package being verified.
did: CanonicalDidThe DID claiming ownership.
token: VerificationTokenThe verification token to place in the registry.
instructions: StringHuman-readable instructions for completing the challenge.
expires_at: DateTime<Utc>When this challenge expires.
Trait Implementations§
Source§impl Clone for VerificationChallenge
impl Clone for VerificationChallenge
Source§fn clone(&self) -> VerificationChallenge
fn clone(&self) -> VerificationChallenge
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 moreSource§impl Debug for VerificationChallenge
impl Debug for VerificationChallenge
Source§impl<'de> Deserialize<'de> for VerificationChallenge
impl<'de> Deserialize<'de> for VerificationChallenge
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
Auto Trait Implementations§
impl Freeze for VerificationChallenge
impl RefUnwindSafe for VerificationChallenge
impl Send for VerificationChallenge
impl Sync for VerificationChallenge
impl Unpin for VerificationChallenge
impl UnsafeUnpin for VerificationChallenge
impl UnwindSafe for VerificationChallenge
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