Skip to content

Commit

Permalink
Add back some accidentally removed lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Aug 8, 2024
1 parent 71a29ae commit 713795f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/definitions/device_engagement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ pub struct DeviceEngagement {
pub security: Security,

/// The optional device retrieval methods for the device engagement.
#[serde(skip_serializing_if = "Option::is_none")]
pub device_retrieval_methods: Option<DeviceRetrievalMethods>,

/// The optional server retrieval methods for the device engagement.
#[serde(skip_serializing_if = "Option::is_none")]
pub server_retrieval_methods: Option<ServerRetrievalMethods>,

/// The optional protocol information for the device engagement.
#[serde(skip_serializing_if = "Option::is_none")]
pub protocol_info: Option<ProtocolInfo>,
}

Expand Down Expand Up @@ -72,9 +75,11 @@ pub struct Security(pub u64, pub EDeviceKeyBytes);
#[serde(rename_all = "camelCase")]
pub struct ServerRetrievalMethods {
/// The `web API retrieval method. This field is optional and will be skipped during serialization if it is [None].
#[serde(skip_serializing_if = "Option::is_none")]
web_api: Option<WebApi>,

/// The `OIDC`` retrieval method. This field is optional and will be skipped during serialization if it is [None].
#[serde(skip_serializing_if = "Option::is_none")]
oidc: Option<Oidc>,
}

Expand Down Expand Up @@ -112,15 +117,19 @@ pub struct CentralClientMode {
#[serde(try_from = "CborValue", into = "CborValue")]
pub struct WifiOptions {
/// The passphrase for the `WiFi connection. If [None], no passphrase is required.
#[serde(skip_serializing_if = "Option::is_none")]
pass_phrase: Option<String>,

/// The operating class of the `WiFi` channel. If [None], the operating class is not specified.
#[serde(skip_serializing_if = "Option::is_none")]
channel_info_operating_class: Option<u64>,

/// The channel number of the `WiFi` channel. If [None], the channel number is not specified.
#[serde(skip_serializing_if = "Option::is_none")]
channel_info_channel_number: Option<u64>,

/// The band information of the `WiFi channel. If [None], the band information is not specified.
#[serde(skip_serializing_if = "Option::is_none")]
band_info: Option<ByteStr>,
}

Expand Down
1 change: 1 addition & 0 deletions src/definitions/device_key/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ pub struct KeyAuthorizations {

/// The data elements associated with the key. This field is optional and will
/// be skipped during serialization if it is [None].
#[serde(skip_serializing_if = "Option::is_none")]
pub data_elements: Option<NonEmptyMap<String, NonEmptyVec<String>>>,
}

Expand Down

0 comments on commit 713795f

Please sign in to comment.