pub struct CreateLdapMappingRequest {
pub name: String,
pub dn: String,
pub role: String,
pub email: Option<String>,
pub role_uids: Option<Vec<u32>>,
}
Expand description
Create or update LDAP mapping request
Fields§
§name: String
Role’s name for the LDAP mapping
dn: String
LDAP group’s distinguished name to map
role: String
Role identifier (deprecated, use role_uids instead)
email: Option<String>
Email address for alert notifications
role_uids: Option<Vec<u32>>
List of role UIDs to associate with this LDAP group
Implementations§
Source§impl CreateLdapMappingRequest
impl CreateLdapMappingRequest
Sourcepub fn builder() -> CreateLdapMappingRequestBuilder<((), (), (), (), ())>
pub fn builder() -> CreateLdapMappingRequestBuilder<((), (), (), (), ())>
Create a builder for building CreateLdapMappingRequest
.
On the builder, call .name(...)
, .dn(...)
, .role(...)
, .email(...)
(optional), .role_uids(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateLdapMappingRequest
.
Trait Implementations§
Source§impl Debug for CreateLdapMappingRequest
impl Debug for CreateLdapMappingRequest
Source§impl<'de> Deserialize<'de> for CreateLdapMappingRequest
impl<'de> Deserialize<'de> for CreateLdapMappingRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateLdapMappingRequest
impl RefUnwindSafe for CreateLdapMappingRequest
impl Send for CreateLdapMappingRequest
impl Sync for CreateLdapMappingRequest
impl Unpin for CreateLdapMappingRequest
impl UnwindSafe for CreateLdapMappingRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more