pub struct AssocRoleAuthMethod {
pub am_name: String,
pub case_sensitive: Option<String>,
pub json: Option<bool>,
pub role_name: String,
pub sub_claims: Option<HashMap<String, String>>,
pub token: Option<String>,
pub uid_token: Option<String>,
}Expand description
AssocRoleAuthMethod : assocRoleAuthMethod is a command that creates an association between role and auth method.
Fields§
§am_name: StringThe auth method to associate
case_sensitive: Option<String>Treat sub claims as case-sensitive [true/false]
json: Option<bool>Set output format to JSON
role_name: StringThe role to associate
sub_claims: Option<HashMap<String, String>>key/val of sub claims, e.g group=admins,developers
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
Implementations§
Source§impl AssocRoleAuthMethod
impl AssocRoleAuthMethod
Sourcepub fn new(am_name: String, role_name: String) -> AssocRoleAuthMethod
pub fn new(am_name: String, role_name: String) -> AssocRoleAuthMethod
assocRoleAuthMethod is a command that creates an association between role and auth method.
Trait Implementations§
Source§impl Clone for AssocRoleAuthMethod
impl Clone for AssocRoleAuthMethod
Source§fn clone(&self) -> AssocRoleAuthMethod
fn clone(&self) -> AssocRoleAuthMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssocRoleAuthMethod
impl Debug for AssocRoleAuthMethod
Source§impl Default for AssocRoleAuthMethod
impl Default for AssocRoleAuthMethod
Source§fn default() -> AssocRoleAuthMethod
fn default() -> AssocRoleAuthMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssocRoleAuthMethod
impl<'de> Deserialize<'de> for AssocRoleAuthMethod
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
Source§impl PartialEq for AssocRoleAuthMethod
impl PartialEq for AssocRoleAuthMethod
Source§fn eq(&self, other: &AssocRoleAuthMethod) -> bool
fn eq(&self, other: &AssocRoleAuthMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AssocRoleAuthMethod
impl Serialize for AssocRoleAuthMethod
impl StructuralPartialEq for AssocRoleAuthMethod
Auto Trait Implementations§
impl Freeze for AssocRoleAuthMethod
impl RefUnwindSafe for AssocRoleAuthMethod
impl Send for AssocRoleAuthMethod
impl Sync for AssocRoleAuthMethod
impl Unpin for AssocRoleAuthMethod
impl UnsafeUnpin for AssocRoleAuthMethod
impl UnwindSafe for AssocRoleAuthMethod
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