pub struct MockValidatorConfig {
pub default_user_id: String,
pub default_tenant_id: Option<String>,
pub default_scopes: Vec<String>,
pub default_client_id: Option<String>,
pub claims: Value,
pub always_authenticated: bool,
}Available on non-WebAssembly only.
Expand description
Mock validator configuration for development/testing.
Fields§
§default_user_id: StringDefault user ID to return.
default_tenant_id: Option<String>Default tenant ID (optional).
default_scopes: Vec<String>Default scopes to grant.
default_client_id: Option<String>Default client ID.
claims: ValueAdditional claims to include.
always_authenticated: boolWhether to always return authenticated (true) or respect token presence.
Trait Implementations§
Source§impl Clone for MockValidatorConfig
impl Clone for MockValidatorConfig
Source§fn clone(&self) -> MockValidatorConfig
fn clone(&self) -> MockValidatorConfig
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 MockValidatorConfig
impl Debug for MockValidatorConfig
Source§impl Default for MockValidatorConfig
impl Default for MockValidatorConfig
Source§impl<'de> Deserialize<'de> for MockValidatorConfig
impl<'de> Deserialize<'de> for MockValidatorConfig
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 MockValidatorConfig
impl RefUnwindSafe for MockValidatorConfig
impl Send for MockValidatorConfig
impl Sync for MockValidatorConfig
impl Unpin for MockValidatorConfig
impl UnsafeUnpin for MockValidatorConfig
impl UnwindSafe for MockValidatorConfig
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