pub struct CryptographicKey {
pub id: Option<Iri>,
pub owner: Option<AnyActor>,
pub public_key: Option<String>,
}Expand description
A key owned by an actor.
The type https://w3id.org/security#Key.
Fields§
§id: Option<Iri>The IRI that identifies this object.
owner: Option<AnyActor>An actor who owns this key.
public_key: Option<String>A PEM-encoded public key.
Implementations§
Source§impl CryptographicKey
impl CryptographicKey
Sourcepub fn from_json_untyped(value: &Value) -> Result<Self, JsonError>
pub fn from_json_untyped(value: &Value) -> Result<Self, JsonError>
Read a CryptographicKey sent without its type, as some properties send it.
§Errors
When value is not an object.
Sourcepub fn to_json_untyped(&self) -> Value
pub fn to_json_untyped(&self) -> Value
Write a CryptographicKey without its type, as some properties send it.
Trait Implementations§
Source§impl Clone for CryptographicKey
impl Clone for CryptographicKey
Source§fn clone(&self) -> CryptographicKey
fn clone(&self) -> CryptographicKey
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 CryptographicKey
impl Debug for CryptographicKey
Source§impl Default for CryptographicKey
impl Default for CryptographicKey
Source§fn default() -> CryptographicKey
fn default() -> CryptographicKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CryptographicKey
impl<'de> Deserialize<'de> for CryptographicKey
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromJson for CryptographicKey
impl FromJson for CryptographicKey
Source§impl PartialEq for CryptographicKey
impl PartialEq for CryptographicKey
Source§impl Serialize for CryptographicKey
impl Serialize for CryptographicKey
impl StructuralPartialEq for CryptographicKey
Auto Trait Implementations§
impl Freeze for CryptographicKey
impl RefUnwindSafe for CryptographicKey
impl Send for CryptographicKey
impl Sync for CryptographicKey
impl Unpin for CryptographicKey
impl UnsafeUnpin for CryptographicKey
impl UnwindSafe for CryptographicKey
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