ConfigLdap

Struct ConfigLdap 

Source
pub struct ConfigLdap {
Show 31 fields pub enable: Option<bool>, pub enable_sync: Option<bool>, pub ldap_server: Option<String>, pub ldap_port: Option<i32>, pub connection_security: Option<String>, pub base_dn: Option<String>, pub bind_username: Option<String>, pub bind_password: Option<String>, pub maximum_login_attempts: Option<i32>, pub user_filter: Option<String>, pub group_filter: Option<String>, pub enable_admin_filter: Option<bool>, pub admin_filter: Option<String>, pub group_display_name_attribute: Option<String>, pub group_id_attribute: Option<String>, pub first_name_attribute: Option<String>, pub last_name_attribute: Option<String>, pub email_attribute: Option<String>, pub username_attribute: Option<String>, pub nickname_attribute: Option<String>, pub id_attribute: Option<String>, pub position_attribute: Option<String>, pub login_id_attribute: Option<String>, pub picture_attribute: Option<String>, pub sync_interval_minutes: Option<i32>, pub query_timeout: Option<i32>, pub max_page_size: Option<i32>, pub login_field_name: Option<String>, pub login_button_color: Option<String>, pub login_button_border_color: Option<String>, pub login_button_text_color: Option<String>,
}

Fields§

§enable: Option<bool>

Basic

§enable_sync: Option<bool>§ldap_server: Option<String>§ldap_port: Option<i32>§connection_security: Option<String>§base_dn: Option<String>§bind_username: Option<String>§bind_password: Option<String>§maximum_login_attempts: Option<i32>§user_filter: Option<String>

Filtering

§group_filter: Option<String>§enable_admin_filter: Option<bool>§admin_filter: Option<String>§group_display_name_attribute: Option<String>

Group Mapping

§group_id_attribute: Option<String>§first_name_attribute: Option<String>

User Mapping

§last_name_attribute: Option<String>§email_attribute: Option<String>§username_attribute: Option<String>§nickname_attribute: Option<String>§id_attribute: Option<String>§position_attribute: Option<String>§login_id_attribute: Option<String>§picture_attribute: Option<String>§sync_interval_minutes: Option<i32>

Synchronization

§query_timeout: Option<i32>

Advanced

§max_page_size: Option<i32>§login_field_name: Option<String>

Customization

§login_button_color: Option<String>§login_button_border_color: Option<String>§login_button_text_color: Option<String>

Implementations§

Source§

impl ConfigLdap

Source

pub fn enable(&self) -> bool

Returns the value of enable, or the default value if enable is unset.

Source

pub fn enable_sync(&self) -> bool

Returns the value of enable_sync, or the default value if enable_sync is unset.

Source

pub fn ldap_server(&self) -> &str

Returns the value of ldap_server, or the default value if ldap_server is unset.

Source

pub fn ldap_port(&self) -> i32

Returns the value of ldap_port, or the default value if ldap_port is unset.

Source

pub fn connection_security(&self) -> &str

Returns the value of connection_security, or the default value if connection_security is unset.

Source

pub fn base_dn(&self) -> &str

Returns the value of base_dn, or the default value if base_dn is unset.

Source

pub fn bind_username(&self) -> &str

Returns the value of bind_username, or the default value if bind_username is unset.

Source

pub fn bind_password(&self) -> &str

Returns the value of bind_password, or the default value if bind_password is unset.

Source

pub fn maximum_login_attempts(&self) -> i32

Returns the value of maximum_login_attempts, or the default value if maximum_login_attempts is unset.

Source

pub fn user_filter(&self) -> &str

Returns the value of user_filter, or the default value if user_filter is unset.

Source

pub fn group_filter(&self) -> &str

Returns the value of group_filter, or the default value if group_filter is unset.

Source

pub fn enable_admin_filter(&self) -> bool

Returns the value of enable_admin_filter, or the default value if enable_admin_filter is unset.

Source

pub fn admin_filter(&self) -> &str

Returns the value of admin_filter, or the default value if admin_filter is unset.

Source

pub fn group_display_name_attribute(&self) -> &str

Returns the value of group_display_name_attribute, or the default value if group_display_name_attribute is unset.

Source

pub fn group_id_attribute(&self) -> &str

Returns the value of group_id_attribute, or the default value if group_id_attribute is unset.

Source

pub fn first_name_attribute(&self) -> &str

Returns the value of first_name_attribute, or the default value if first_name_attribute is unset.

Source

pub fn last_name_attribute(&self) -> &str

Returns the value of last_name_attribute, or the default value if last_name_attribute is unset.

Source

pub fn email_attribute(&self) -> &str

Returns the value of email_attribute, or the default value if email_attribute is unset.

Source

pub fn username_attribute(&self) -> &str

Returns the value of username_attribute, or the default value if username_attribute is unset.

Source

pub fn nickname_attribute(&self) -> &str

Returns the value of nickname_attribute, or the default value if nickname_attribute is unset.

Source

pub fn id_attribute(&self) -> &str

Returns the value of id_attribute, or the default value if id_attribute is unset.

Source

pub fn position_attribute(&self) -> &str

Returns the value of position_attribute, or the default value if position_attribute is unset.

Source

pub fn login_id_attribute(&self) -> &str

Returns the value of login_id_attribute, or the default value if login_id_attribute is unset.

Source

pub fn picture_attribute(&self) -> &str

Returns the value of picture_attribute, or the default value if picture_attribute is unset.

Source

pub fn sync_interval_minutes(&self) -> i32

Returns the value of sync_interval_minutes, or the default value if sync_interval_minutes is unset.

Source

pub fn query_timeout(&self) -> i32

Returns the value of query_timeout, or the default value if query_timeout is unset.

Source

pub fn max_page_size(&self) -> i32

Returns the value of max_page_size, or the default value if max_page_size is unset.

Source

pub fn login_field_name(&self) -> &str

Returns the value of login_field_name, or the default value if login_field_name is unset.

Source

pub fn login_button_color(&self) -> &str

Returns the value of login_button_color, or the default value if login_button_color is unset.

Source

pub fn login_button_border_color(&self) -> &str

Returns the value of login_button_border_color, or the default value if login_button_border_color is unset.

Source

pub fn login_button_text_color(&self) -> &str

Returns the value of login_button_text_color, or the default value if login_button_text_color is unset.

Trait Implementations§

Source§

impl Clone for ConfigLdap

Source§

fn clone(&self) -> ConfigLdap

Returns a duplicate 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 ConfigLdap

Source§

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

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

impl Default for ConfigLdap

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ConfigLdap

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 Message for ConfigLdap

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for ConfigLdap

Source§

fn eq(&self, other: &ConfigLdap) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ConfigLdap

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
Source§

impl StructuralPartialEq for ConfigLdap

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> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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