pub struct AuthorizationReviewView { /* private fields */ }Expand description
One role-bound response reduced to bounded fingerprints and typed metadata.
Implementations§
Source§impl AuthorizationReviewView
impl AuthorizationReviewView
Sourcepub fn capture_json(
policy: &AuthorizationReviewPolicy,
role: AuthorizationViewRole,
status: u16,
snapshot: &Value,
receipt_id: AuthorizationViewReceiptId,
) -> Result<Self, AuthorizationReviewViewError>
pub fn capture_json( policy: &AuthorizationReviewPolicy, role: AuthorizationViewRole, status: u16, snapshot: &Value, receipt_id: AuthorizationViewReceiptId, ) -> Result<Self, AuthorizationReviewViewError>
Captures a complete JSON view through the existing value-sensitive API comparator and immediately discards the raw JSON value.
Sourcepub fn terminal(
policy: &AuthorizationReviewPolicy,
role: AuthorizationViewRole,
status: Option<u16>,
media_class: AuthorizationReviewMediaClass,
state: AuthorizationReviewBodyState,
receipt_id: AuthorizationViewReceiptId,
) -> Result<Self, AuthorizationReviewViewError>
pub fn terminal( policy: &AuthorizationReviewPolicy, role: AuthorizationViewRole, status: Option<u16>, media_class: AuthorizationReviewMediaClass, state: AuthorizationReviewBodyState, receipt_id: AuthorizationViewReceiptId, ) -> Result<Self, AuthorizationReviewViewError>
Captures a typed non-comparable terminal response without retaining a body.
Sourcepub const fn role(&self) -> AuthorizationViewRole
pub const fn role(&self) -> AuthorizationViewRole
Returns the fixed leg role.
Sourcepub const fn media_class(&self) -> AuthorizationReviewMediaClass
pub const fn media_class(&self) -> AuthorizationReviewMediaClass
Returns the normalized response-media class.
Sourcepub const fn state(&self) -> AuthorizationReviewBodyState
pub const fn state(&self) -> AuthorizationReviewBodyState
Returns the bounded response classification.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthorizationReviewView
impl RefUnwindSafe for AuthorizationReviewView
impl Send for AuthorizationReviewView
impl Sync for AuthorizationReviewView
impl Unpin for AuthorizationReviewView
impl UnsafeUnpin for AuthorizationReviewView
impl UnwindSafe for AuthorizationReviewView
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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