Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct IdentityProvider {
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
oidc_response_types: Option<Vec<String>>,

/// Additional special provider specific configuration
/// Additional special provider specific configuration.
#[arg(help_heading = "Body parameters", long, value_name="key=value", value_parser=parse_key_val::<String, Value>)]
provider_config: Option<Vec<(String, Value)>>,
}
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/identity/v4/federation/mapping/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct QueryParameters {
#[arg(help_heading = "Query parameters", long)]
idp_id: Option<String>,

/// Limit number of entries on the single response page (Maximal 100)
/// Limit number of entries on the single response page (Maximal 100).
#[arg(
help_heading = "Query parameters",
long("page-size"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ pub struct IdentityProvider<'a> {
#[builder(default, setter(into))]
pub(crate) oidc_response_types: Option<Vec<Cow<'a, str>>>,

/// Additional special provider specific configuration
/// Additional special provider specific configuration.
#[serde(skip_serializing_if = "Option::is_none")]
#[builder(default, private, setter(into, name = "_provider_config"))]
pub(crate) provider_config: Option<BTreeMap<Cow<'a, str>, Value>>,
}

impl<'a> IdentityProviderBuilder<'a> {
/// Additional special provider specific configuration
/// Additional special provider specific configuration.
pub fn provider_config<I, K, V>(&mut self, iter: I) -> &mut Self
where
I: Iterator<Item = (K, V)>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub struct Request<'a> {
#[builder(default, setter(into))]
idp_id: Option<Cow<'a, str>>,

/// Limit number of entries on the single response page (Maximal 100)
/// Limit number of entries on the single response page (Maximal 100).
#[builder(default)]
limit: Option<u32>,

Expand Down
20 changes: 10 additions & 10 deletions openstack_sdk/src/api/identity/v4/user/passkey/register_finish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use serde::Deserialize;
use serde::Serialize;
use std::borrow::Cow;

/// <https://www.w3.org/TR/webauthn-3/#sctn-authenticator-credential-properties-extension>
/// <https://www.w3.org/TR/webauthn-3/#sctn-authenticator-credential-properties-extension>.
#[derive(Builder, Debug, Deserialize, Clone, Serialize)]
#[builder(setter(strip_option))]
pub struct CredProps {
Expand All @@ -34,9 +34,9 @@ pub struct CredProps {
///
/// Note that this extension is UNSIGNED and may have been altered by page
/// javascript.
#[serde()]
#[builder(setter(into))]
pub(crate) rk: bool,
#[serde(skip_serializing_if = "Option::is_none")]
#[builder(default, setter(into))]
pub(crate) rk: Option<Option<bool>>,
}

#[derive(Debug, Deserialize, Clone, Serialize)]
Expand All @@ -50,7 +50,7 @@ pub enum CredProtect {
}

/// <https://w3c.github.io/webauthn/#dictdef-authenticationextensionsclientoutputs>
/// The default option here for Options are None, so it can be derived
/// The default option here for Options are None, so it can be derived.
#[derive(Builder, Debug, Deserialize, Clone, Serialize)]
#[builder(setter(strip_option))]
pub struct Extensions {
Expand All @@ -59,12 +59,12 @@ pub struct Extensions {
#[builder(default, setter(into))]
pub(crate) appid: Option<bool>,

/// <https://www.w3.org/TR/webauthn-3/#sctn-authenticator-credential-properties-extension>
/// <https://www.w3.org/TR/webauthn-3/#sctn-authenticator-credential-properties-extension>.
#[serde(skip_serializing_if = "Option::is_none")]
#[builder(default, setter(into))]
pub(crate) cred_props: Option<CredProps>,

/// Valid credential protection policies
/// Valid credential protection policies.
#[serde(skip_serializing_if = "Option::is_none")]
#[builder(default)]
pub(crate) cred_protect: Option<CredProtect>,
Expand Down Expand Up @@ -98,7 +98,7 @@ pub enum Transports {
Usb,
}

/// <https://w3c.github.io/webauthn/#authenticatorattestationresponse>
/// <https://w3c.github.io/webauthn/#authenticatorattestationresponse>.
#[derive(Builder, Debug, Deserialize, Clone, Serialize)]
#[builder(setter(strip_option))]
pub struct Response<'a> {
Expand Down Expand Up @@ -126,7 +126,7 @@ pub struct Request<'a> {
pub(crate) description: Option<Cow<'a, str>>,

/// <https://w3c.github.io/webauthn/#dictdef-authenticationextensionsclientoutputs>
/// The default option here for Options are None, so it can be derived
/// The default option here for Options are None, so it can be derived.
#[builder(setter(into))]
pub(crate) extensions: Extensions,

Expand All @@ -144,7 +144,7 @@ pub struct Request<'a> {
#[builder(setter(into))]
pub(crate) raw_id: Cow<'a, str>,

/// <https://w3c.github.io/webauthn/#authenticatorattestationresponse>
/// <https://w3c.github.io/webauthn/#authenticatorattestationresponse>.
#[builder(setter(into))]
pub(crate) response: Response<'a>,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use std::borrow::Cow;
#[derive(Builder, Debug, Deserialize, Clone, Serialize)]
#[builder(setter(strip_option))]
pub struct Passkey<'a> {
/// Passkey description
/// Passkey description.
#[serde(skip_serializing_if = "Option::is_none")]
#[builder(default, setter(into))]
pub(crate) description: Option<Cow<'a, str>>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use structable::{StructTable, StructTableOptions};
/// RegisterStart response representation
#[derive(Clone, Deserialize, Serialize, StructTable)]
pub struct RegisterStartResponse {
/// <https://www.w3.org/TR/webauthn/#enumdef-attestationconveyancepreference>
/// <https://www.w3.org/TR/webauthn/#enumdef-attestationconveyancepreference>.
#[serde(default)]
#[structable(optional, serialize)]
pub attestation: Option<Attestation>,
Expand All @@ -32,7 +32,7 @@ pub struct RegisterStartResponse {
#[structable(optional, serialize)]
pub attestation_formats: Option<Vec<AttestationFormats>>,

/// <https://www.w3.org/TR/webauthn/#dictdef-authenticatorselectioncriteria>
/// <https://www.w3.org/TR/webauthn/#dictdef-authenticatorselectioncriteria>.
#[serde(default)]
#[structable(optional, serialize)]
pub authenticator_selection: Option<AuthenticatorSelection>,
Expand Down Expand Up @@ -226,7 +226,7 @@ impl std::str::FromStr for UserVerification {
}
}

/// <https://www.w3.org/TR/webauthn/#dictdef-authenticatorselectioncriteria>
/// <https://www.w3.org/TR/webauthn/#dictdef-authenticatorselectioncriteria>.
/// `AuthenticatorSelection` type
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct AuthenticatorSelection {
Expand Down Expand Up @@ -285,7 +285,7 @@ impl std::str::FromStr for Transports {
}
}

/// <https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialdescriptor>
/// <https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialdescriptor>.
/// `ExcludeCredentials` type
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ExcludeCredentials {
Expand Down Expand Up @@ -322,9 +322,9 @@ impl std::str::FromStr for CredentialProtectionPolicy {
}
}

/// The desired options for the client's use of the credProtect extension
/// The desired options for the client's use of the credProtect extension.
///
/// <https://fidoalliance.org/specs/fido-v2.1-rd-20210309/fido-client-to-authenticator-protocol-v2.1-rd-20210309.html#sctn-credProtect-extension>
/// <https://fidoalliance.org/specs/fido-v2.1-rd-20210309/fido-client-to-authenticator-protocol-v2.1-rd-20210309.html#sctn-credProtect-extension>.
/// `CredProtect` type
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct CredProtect {
Expand Down Expand Up @@ -378,7 +378,7 @@ impl std::str::FromStr for Hints {
}
}

/// Public key cryptographic parameters
/// Public key cryptographic parameters.
/// `PubKeyCredParams` type
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct PubKeyCredParams {
Expand Down
Loading