pub struct PlatformClaim {
pub claim_type: String,
pub platform: String,
pub namespace: String,
pub did: String,
pub timestamp: String,
pub signature: Option<String>,
}Expand description
Signed platform claim linking a controller DID to a platform identity.
Canonicalized (RFC 8785) before signing so that the Ed25519 signature can be verified by anyone using only the DID’s public key.
Fields§
§claim_type: StringClaim type discriminant; always "platform_claim".
platform: StringPlatform identifier (e.g. "github").
namespace: StringUsername on the platform.
did: StringController DID being linked.
timestamp: StringRFC 3339 timestamp of claim creation.
signature: Option<String>Base64url-encoded Ed25519 signature over the canonical unsigned JSON.
Trait Implementations§
Source§impl Clone for PlatformClaim
impl Clone for PlatformClaim
Source§fn clone(&self) -> PlatformClaim
fn clone(&self) -> PlatformClaim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlatformClaim
impl Debug for PlatformClaim
Source§impl<'de> Deserialize<'de> for PlatformClaim
impl<'de> Deserialize<'de> for PlatformClaim
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 PlatformClaim
impl RefUnwindSafe for PlatformClaim
impl Send for PlatformClaim
impl Sync for PlatformClaim
impl Unpin for PlatformClaim
impl UnsafeUnpin for PlatformClaim
impl UnwindSafe for PlatformClaim
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