Skip to main content
pub struct HasRoleRequestOptions 
    pub no_error_if_not_exists: String,
    pub only_direct: String,

Optional parameters for the /has/role endpoint.

Default::default() is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.

Fields

no_error_if_not_exists: String

If false will return an error if the provided role does not exist or is blank. If true then it will return false for has_role. Server default: false.

only_direct: String

If false will search recursively if the principal is a member of role. If true then principal must directly be a member of role. Server default: false.

Implementations

Source

pub fn to_map(&self) -> HashMap<String, String>

Converts the set (non-empty) options into the wire-format string map.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

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

Performs copy-assignment from source. Read more
Source

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

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more