Struct PostParams

Source
pub struct PostParams {
Show 39 fields pub acr_values: Option<String>, pub autocreate: Option<bool>, pub base_dn: Option<String>, pub bind_dn: Option<String>, pub capath: Option<String>, pub case_sensitive: Option<bool>, pub cert: Option<String>, pub certkey: Option<String>, pub check_connection: Option<bool>, pub client_id: Option<String>, pub client_key: Option<String>, pub comment: Option<String>, pub default: Option<bool>, pub domain: Option<String>, pub filter: Option<String>, pub group_classes: Option<String>, pub group_dn: Option<String>, pub group_filter: Option<String>, pub group_name_attr: Option<String>, pub issuer_url: Option<String>, pub mode: Option<Mode>, pub password: Option<String>, pub port: Option<u64>, pub prompt: Option<String>, pub realm: String, pub scopes: Option<String>, pub secure: Option<bool>, pub server1: Option<String>, pub server2: Option<String>, pub sslversion: Option<Sslversion>, pub sync_defaults_options: Option<String>, pub sync_attributes: Option<String>, pub tfa: Option<String>, pub ty: Type, pub user_attr: Option<String>, pub user_classes: Option<String>, pub username_claim: Option<String>, pub verify: Option<bool>, pub additional_properties: HashMap<String, Value>,
}

Fields§

§acr_values: Option<String>

Specifies the Authentication Context Class Reference values that theAuthorization Server is being requested to use for the Auth Request.

§autocreate: Option<bool>

Automatically create users if they do not exist.

§base_dn: Option<String>

LDAP base domain name

§bind_dn: Option<String>

LDAP bind domain name

§capath: Option<String>

Path to the CA certificate store

§case_sensitive: Option<bool>

username is case-sensitive

§cert: Option<String>

Path to the client certificate

§certkey: Option<String>

Path to the client certificate key

§check_connection: Option<bool>

Check bind connection to the server.

§client_id: Option<String>

OpenID Client ID

§client_key: Option<String>

OpenID Client Key

§comment: Option<String>

Description.

§default: Option<bool>

Use this as default realm

§domain: Option<String>

AD domain name

§filter: Option<String>

LDAP filter for user sync.

§group_classes: Option<String>

The objectclasses for groups.

§group_dn: Option<String>

LDAP base domain name for group sync. If not set, the base_dn will be used.

§group_filter: Option<String>

LDAP filter for group sync.

§group_name_attr: Option<String>

LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.

§issuer_url: Option<String>

OpenID Issuer Url

§mode: Option<Mode>

LDAP protocol mode.

§password: Option<String>

LDAP bind password. Will be stored in ‘/etc/pve/priv/realm/<REALM>.pw’.

§port: Option<u64>

Server port.

§prompt: Option<String>

Specifies whether the Authorization Server prompts the End-User for reauthentication and consent.

§realm: String

Authentication domain ID

§scopes: Option<String>

Specifies the scopes (user details) that should be authorized and returned, for example ‘email’ or ‘profile’.

§secure: Option<bool>

Use secure LDAPS protocol. DEPRECATED: use ‘mode’ instead.

§server1: Option<String>

Server IP address (or DNS name)

§server2: Option<String>

Fallback Server IP address (or DNS name)

§sslversion: Option<Sslversion>

LDAPS TLS/SSL version. It’s not recommended to use version older than 1.2!

§sync_defaults_options: Option<String>

The default options for behavior of synchronizations.

§sync_attributes: Option<String>

Comma separated list of key=value pairs for specifying which LDAP attributes map to which PVE user field. For example, to map the LDAP attribute ‘mail’ to PVEs ‘email’, write ‘email=mail’. By default, each PVE user field is represented by an LDAP attribute of the same name.

§tfa: Option<String>

Use Two-factor authentication.

§ty: Type

Realm type.

§user_attr: Option<String>

LDAP user attribute name

§user_classes: Option<String>

The objectclasses for users.

§username_claim: Option<String>

OpenID claim used to generate the unique username.

§verify: Option<bool>

Verify the server’s SSL certificate

§additional_properties: HashMap<String, Value>

Implementations§

Source§

impl PostParams

Source

pub fn new(realm: String, ty: Type) -> Self

Trait Implementations§

Source§

impl Clone for PostParams

Source§

fn clone(&self) -> PostParams

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PostParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PostParams

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for PostParams

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,