pub struct TypeDidProfile {
pub id: String,
pub did_methods: Vec<String>,
pub signing: Vec<String>,
pub key_agreement: Vec<String>,
pub encryption: Vec<String>,
pub transport_bindings: Vec<String>,
pub modes: Vec<TypeDidMode>,
pub max_payload_bytes: Option<usize>,
pub required_claims: Vec<String>,
pub policy_actions: Vec<String>,
pub retention: Option<String>,
pub audit: Option<String>,
}Expand description
A negotiable TypeDID security profile.
Fields§
§id: StringStable profile id.
did_methods: Vec<String>Supported DID methods, such as did:web or did:key.
signing: Vec<String>Supported signing algorithms.
key_agreement: Vec<String>Supported key-agreement algorithms.
encryption: Vec<String>Supported encryption profiles.
transport_bindings: Vec<String>Supported outer transport bindings.
modes: Vec<TypeDidMode>Supported TypeDID send modes.
max_payload_bytes: Option<usize>Optional maximum encrypted payload size.
required_claims: Vec<String>Claims required by the remote boundary.
policy_actions: Vec<String>Policy actions this profile is willing to carry.
retention: Option<String>Retention posture advertised by the receiver.
audit: Option<String>Audit posture advertised by the receiver.
Implementations§
Source§impl TypeDidProfile
impl TypeDidProfile
Sourcepub fn ed25519_x25519_chacha20() -> Self
pub fn ed25519_x25519_chacha20() -> Self
Default local TypeDID profile backed by the built-in Ed25519/X25519 key store.
Sourcepub fn is_compatible_with(
&self,
remote: &Self,
protocol: &str,
mode: TypeDidMode,
) -> bool
pub fn is_compatible_with( &self, remote: &Self, protocol: &str, mode: TypeDidMode, ) -> bool
Return true when this local profile can safely communicate with remote.
Trait Implementations§
Source§impl Clone for TypeDidProfile
impl Clone for TypeDidProfile
Source§fn clone(&self) -> TypeDidProfile
fn clone(&self) -> TypeDidProfile
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 TypeDidProfile
impl Debug for TypeDidProfile
Source§impl<'de> Deserialize<'de> for TypeDidProfile
impl<'de> Deserialize<'de> for TypeDidProfile
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
impl Eq for TypeDidProfile
Source§impl PartialEq for TypeDidProfile
impl PartialEq for TypeDidProfile
Source§fn eq(&self, other: &TypeDidProfile) -> bool
fn eq(&self, other: &TypeDidProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TypeDidProfile
impl Serialize for TypeDidProfile
impl StructuralPartialEq for TypeDidProfile
Auto Trait Implementations§
impl Freeze for TypeDidProfile
impl RefUnwindSafe for TypeDidProfile
impl Send for TypeDidProfile
impl Sync for TypeDidProfile
impl Unpin for TypeDidProfile
impl UnsafeUnpin for TypeDidProfile
impl UnwindSafe for TypeDidProfile
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