pub enum AuthorizationRefusal {
Missing,
Expired,
Mismatched,
Errored,
Refused,
}Expand description
Why an attempt was not authorized. Each prevents dispatch and is
recorded as authorization_refused (spec 026, 3.3).
Variants§
Missing
The host gave no answer.
Expired
The answer’s validity ended before dispatch.
Mismatched
The answer names a different request.
Errored
The host’s authorizer failed or panicked.
Refused
The host refused.
Implementations§
Trait Implementations§
Source§impl Clone for AuthorizationRefusal
impl Clone for AuthorizationRefusal
impl Copy for AuthorizationRefusal
Source§impl Debug for AuthorizationRefusal
impl Debug for AuthorizationRefusal
Source§impl<'de> Deserialize<'de> for AuthorizationRefusal
impl<'de> Deserialize<'de> for AuthorizationRefusal
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 Display for AuthorizationRefusal
impl Display for AuthorizationRefusal
impl Eq for AuthorizationRefusal
Source§impl JsonSchema for AuthorizationRefusal
impl JsonSchema for AuthorizationRefusal
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 AuthorizationRefusal
impl PartialEq for AuthorizationRefusal
Source§impl Serialize for AuthorizationRefusal
impl Serialize for AuthorizationRefusal
impl StructuralPartialEq for AuthorizationRefusal
Auto Trait Implementations§
impl Freeze for AuthorizationRefusal
impl RefUnwindSafe for AuthorizationRefusal
impl Send for AuthorizationRefusal
impl Sync for AuthorizationRefusal
impl Unpin for AuthorizationRefusal
impl UnsafeUnpin for AuthorizationRefusal
impl UnwindSafe for AuthorizationRefusal
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