crypto: Document the rust Device struct
This commit is contained in:
parent
aebfef8fa9
commit
5b761ef7d1
@ -2,12 +2,22 @@ use std::collections::HashMap;
|
|||||||
|
|
||||||
use matrix_sdk_crypto::Device as InnerDevice;
|
use matrix_sdk_crypto::Device as InnerDevice;
|
||||||
|
|
||||||
|
/// An E2EE capable Matrix device.
|
||||||
pub struct Device {
|
pub struct Device {
|
||||||
|
/// The device owner.
|
||||||
pub user_id: String,
|
pub user_id: String,
|
||||||
|
/// The unique ID of the device.
|
||||||
pub device_id: String,
|
pub device_id: String,
|
||||||
|
/// The published public identity keys of the devices
|
||||||
|
///
|
||||||
|
/// A map from the key type (e.g. curve25519) to the base64 encoded key.
|
||||||
pub keys: HashMap<String, String>,
|
pub keys: HashMap<String, String>,
|
||||||
|
/// The supported algorithms of the device.
|
||||||
pub algorithms: Vec<String>,
|
pub algorithms: Vec<String>,
|
||||||
|
/// The human readable name of the device.
|
||||||
pub display_name: Option<String>,
|
pub display_name: Option<String>,
|
||||||
|
/// A flag indicating if the device has been blocked, blocked devices don't
|
||||||
|
/// receive any room keys from us.
|
||||||
pub is_blocked: bool,
|
pub is_blocked: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user