pub struct CredentialBundle {
pub did: String,
pub private_key_multibase: String,
pub vta_did: String,
pub vta_url: Option<String>,
}Expand description
A portable credential bundle issued by a VTA for client authentication.
Post-Phase-5 the canonical transport for this type is
[crate::sealed_transfer] (HPKE-sealed armored bundle); in-process it is
passed as a struct. serde_json::to_string / serde_json::from_str are
the canonical serialization points when a plaintext on-disk form is
genuinely needed (e.g. at-rest keyring storage, where the OS already
provides confidentiality).
Fields§
§did: String§private_key_multibase: String§vta_did: String§vta_url: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CredentialBundle
impl Clone for CredentialBundle
Source§fn clone(&self) -> CredentialBundle
fn clone(&self) -> CredentialBundle
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 CredentialBundle
impl Debug for CredentialBundle
Source§impl<'de> Deserialize<'de> for CredentialBundle
impl<'de> Deserialize<'de> for CredentialBundle
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 CredentialBundle
impl RefUnwindSafe for CredentialBundle
impl Send for CredentialBundle
impl Sync for CredentialBundle
impl Unpin for CredentialBundle
impl UnsafeUnpin for CredentialBundle
impl UnwindSafe for CredentialBundle
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