pub enum DenyReason {
NotAllowed,
ExplicitDeny,
Unauthenticated,
NoPolicy,
UnknownTarget,
}Variants§
Implementations§
Source§impl DenyReason
impl DenyReason
Sourcepub fn new_not_allowed() -> Self
pub fn new_not_allowed() -> Self
Constructs a new DenyReason::NotAllowed.
Source§impl DenyReason
impl DenyReason
Sourcepub fn new_explicit_deny() -> Self
pub fn new_explicit_deny() -> Self
Constructs a new DenyReason::ExplicitDeny.
Source§impl DenyReason
impl DenyReason
Sourcepub fn new_unauthenticated() -> Self
pub fn new_unauthenticated() -> Self
Constructs a new DenyReason::Unauthenticated.
Source§impl DenyReason
impl DenyReason
Sourcepub fn new_no_policy() -> Self
pub fn new_no_policy() -> Self
Constructs a new DenyReason::NoPolicy.
Source§impl DenyReason
impl DenyReason
Sourcepub fn new_unknown_target() -> Self
pub fn new_unknown_target() -> Self
Constructs a new DenyReason::UnknownTarget.
Trait Implementations§
Source§impl Clone for DenyReason
impl Clone for DenyReason
Source§fn clone(&self) -> DenyReason
fn clone(&self) -> DenyReason
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 DenyReason
impl Debug for DenyReason
Source§impl<'de> Deserialize<'de> for DenyReason
impl<'de> Deserialize<'de> for DenyReason
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 JsonSchema for DenyReason
impl JsonSchema for DenyReason
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DenyReason
impl PartialEq for DenyReason
Source§fn eq(&self, other: &DenyReason) -> bool
fn eq(&self, other: &DenyReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DenyReason
impl Serialize for DenyReason
impl StructuralPartialEq for DenyReason
Auto Trait Implementations§
impl Freeze for DenyReason
impl RefUnwindSafe for DenyReason
impl Send for DenyReason
impl Sync for DenyReason
impl Unpin for DenyReason
impl UnsafeUnpin for DenyReason
impl UnwindSafe for DenyReason
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