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: StringIf 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: StringIf 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
Trait Implementations
Source
impl Clone for HasRoleRequestOptions
Source
fn clone(&self) -> HasRoleRequestOptions
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 moreSource
impl Debug for HasRoleRequestOptions
Source
impl Default for HasRoleRequestOptions
Source
fn default() -> HasRoleRequestOptions
Returns the “default value” for a type. Read more