Struct authress::models::client_options::ClientOptions
source · pub struct ClientOptions {
pub grant_user_permissions_access: Option<Option<bool>>,
pub grant_token_generation: Option<Option<bool>>,
}Expand description
ClientOptions : A set of client specific options
Fields§
§grant_user_permissions_access: Option<Option<bool>>Grant the client access to verify authorization on behalf of any user.
grant_token_generation: Option<Option<bool>>Grant the client access to generate oauth tokens on behalf of the Authress account. Security Warning: This means that this client can impersonate any user, and should only be used when connecting an existing custom Authorization Server to Authress, when that server does not support a standard OAuth connection.
Implementations§
source§impl ClientOptions
impl ClientOptions
sourcepub fn new() -> ClientOptions
pub fn new() -> ClientOptions
A set of client specific options
Trait Implementations§
source§impl Clone for ClientOptions
impl Clone for ClientOptions
source§fn clone(&self) -> ClientOptions
fn clone(&self) -> ClientOptions
Returns a copy of the value. Read more
1.0.0 · 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 ClientOptions
impl Debug for ClientOptions
source§impl Default for ClientOptions
impl Default for ClientOptions
source§fn default() -> ClientOptions
fn default() -> ClientOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ClientOptions
impl<'de> Deserialize<'de> for ClientOptions
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 ClientOptions
impl PartialEq for ClientOptions
source§fn eq(&self, other: &ClientOptions) -> bool
fn eq(&self, other: &ClientOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ClientOptions
impl Serialize for ClientOptions
impl StructuralPartialEq for ClientOptions
Auto Trait Implementations§
impl RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnwindSafe for ClientOptions
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