Remove trait derives other than Debug from Init structs
This commit is contained in:
parent
2577225ba5
commit
7a61c9cd8c
@ -77,7 +77,7 @@ pub struct KeyBackupData {
|
||||
///
|
||||
/// This struct will not be updated even if additional fields are added to `SessionData` in a
|
||||
/// new (non-breaking) release of the Matrix specification.
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::exhaustive_structs)]
|
||||
pub struct KeyBackupDataInit {
|
||||
/// The index of the first message in the session that the key can decrypt.
|
||||
@ -122,7 +122,7 @@ pub struct SessionData {
|
||||
///
|
||||
/// This struct will not be updated even if additional fields are added to `SessionData` in a
|
||||
/// new (non-breaking) release of the Matrix specification.
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::exhaustive_structs)]
|
||||
pub struct SessionDataInit {
|
||||
/// Unpadded base64-encoded public half of the ephemeral key.
|
||||
|
@ -124,7 +124,7 @@ pub struct SasV1Content {
|
||||
}
|
||||
|
||||
/// Mandatory initial set of fields for creating an accept `SasV1Content`.
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::exhaustive_structs)]
|
||||
pub struct SasV1ContentInit {
|
||||
/// The key agreement protocol the device is choosing to use, out of the
|
||||
|
@ -158,7 +158,7 @@ pub struct SasV1Content {
|
||||
}
|
||||
|
||||
/// Mandatory initial set of fields for creating an `SasV1Content`.
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::exhaustive_structs)]
|
||||
pub struct SasV1ContentInit {
|
||||
/// The key agreement protocols the sending device understands.
|
||||
|
@ -210,7 +210,7 @@ pub struct MegolmV1AesSha2Content {
|
||||
///
|
||||
/// This struct will not be updated even if additional fields are added to `MegolmV1AesSha2Content`
|
||||
/// in a new (non-breaking) release of the Matrix specification.
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::exhaustive_structs)]
|
||||
pub struct MegolmV1AesSha2ContentInit {
|
||||
/// The encrypted content of the event.
|
||||
|
Loading…
x
Reference in New Issue
Block a user