Struct ruma::events::room::JsonWebKeyInit
source · pub struct JsonWebKeyInit {
pub kty: String,
pub key_ops: Vec<String, Global>,
pub alg: String,
pub k: Base64<UrlSafe, Vec<u8, Global>>,
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, Global>
Key operations.
Must at least contain encrypt
and decrypt
.
alg: String
Algorithm.
Must be A256CTR
.
k: Base64<UrlSafe, Vec<u8, Global>>
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.