pub enum GuardOutcome {
Allow,
Reject(String),
}Expand description
守卫结果:Allow 或携带拒绝原因的 JSON
Variants§
Implementations§
Source§impl GuardOutcome
impl GuardOutcome
pub fn into_err_json(self) -> Option<String>
Auto Trait Implementations§
impl Freeze for GuardOutcome
impl RefUnwindSafe for GuardOutcome
impl Send for GuardOutcome
impl Sync for GuardOutcome
impl Unpin for GuardOutcome
impl UnwindSafe for GuardOutcome
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