pub struct JsonWebKeyInit {
pub kty: String,
pub key_ops: Vec<String>,
pub alg: String,
pub k: Base64<UrlSafe>,
pub ext: bool,
}
Available on crate feature
events
only.Expand description
Initial set of fields of JsonWebKey
.
This struct will not be updated even if additional fields are added to JsonWebKey
in a new
(non-breaking) release of the Matrix specification.
Fields§
§kty: String
Key type.
Must be oct
.
key_ops: Vec<String>
Key operations.
Must at least contain encrypt
and decrypt
.
alg: String
Algorithm.
Must be A256CTR
.
k: Base64<UrlSafe>
The key, encoded as url-safe unpadded base64.
ext: bool
Extractable.
Must be true
. This is a
W3C extension.
Trait Implementations§
Source§impl Debug for JsonWebKeyInit
impl Debug for JsonWebKeyInit
Source§impl From<JsonWebKeyInit> for JsonWebKey
impl From<JsonWebKeyInit> for JsonWebKey
Source§fn from(init: JsonWebKeyInit) -> JsonWebKey
fn from(init: JsonWebKeyInit) -> JsonWebKey
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonWebKeyInit
impl RefUnwindSafe for JsonWebKeyInit
impl Send for JsonWebKeyInit
impl Sync for JsonWebKeyInit
impl Unpin for JsonWebKeyInit
impl UnwindSafe for JsonWebKeyInit
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