#[non_exhaustive]pub enum TenantBindingError {
InvalidProvenance {
value: String,
},
InvalidWindow,
NotYetValid {
valid_from: OffsetDateTime,
now: OffsetDateTime,
},
Stale {
valid_until: OffsetDateTime,
now: OffsetDateTime,
},
AuthenticatedInFuture {
authenticated_at: OffsetDateTime,
now: OffsetDateTime,
},
}Expand description
Errors returned when constructing or validating a tenant binding.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidProvenance
Provenance was empty, contained controls, or exceeded its bound.
InvalidWindow
The validity window was empty, inverted, or inconsistent with evidence.
NotYetValid
The binding is not active yet.
Fields
§
valid_from: OffsetDateTimeStart of the binding validity window.
§
now: OffsetDateTimeClock time at which validation was attempted.
Stale
The binding is no longer active.
Fields
§
valid_until: OffsetDateTimeEnd of the binding validity window.
§
now: OffsetDateTimeClock time at which validation was attempted.
AuthenticatedInFuture
The application authentication evidence is from the future relative to the clock used at this authorization boundary.
Fields
§
authenticated_at: OffsetDateTimeTime recorded by the application verifier.
§
now: OffsetDateTimeClock time at which validation was attempted.
Trait Implementations§
Source§impl Clone for TenantBindingError
impl Clone for TenantBindingError
Source§fn clone(&self) -> TenantBindingError
fn clone(&self) -> TenantBindingError
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 TenantBindingError
impl Debug for TenantBindingError
Source§impl Display for TenantBindingError
impl Display for TenantBindingError
impl Eq for TenantBindingError
Source§impl Error for TenantBindingError
impl Error for TenantBindingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TenantBindingError> for ContextError
impl From<TenantBindingError> for ContextError
Source§fn from(source: TenantBindingError) -> Self
fn from(source: TenantBindingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TenantBindingError
impl PartialEq for TenantBindingError
impl StructuralPartialEq for TenantBindingError
Auto Trait Implementations§
impl Freeze for TenantBindingError
impl RefUnwindSafe for TenantBindingError
impl Send for TenantBindingError
impl Sync for TenantBindingError
impl Unpin for TenantBindingError
impl UnsafeUnpin for TenantBindingError
impl UnwindSafe for TenantBindingError
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