pub struct OwnedAdmission {
pub allowed_paths: Vec<String>,
pub denied_paths: Vec<String>,
}Expand description
Fields§
§allowed_paths: Vec<String>Path prefixes this gate admits; empty admits every path. 本门禁允许的路径前缀;为空表示允许任何路径。
denied_paths: Vec<String>Path prefixes this gate rejects before consulting the allow list. 在查看允许列表之前即被拒绝的路径前缀。
Implementations§
Trait Implementations§
Source§impl Clone for OwnedAdmission
impl Clone for OwnedAdmission
Source§fn clone(&self) -> OwnedAdmission
fn clone(&self) -> OwnedAdmission
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 OwnedAdmission
impl Debug for OwnedAdmission
impl Eq for OwnedAdmission
Source§impl PartialEq for OwnedAdmission
impl PartialEq for OwnedAdmission
impl StructuralPartialEq for OwnedAdmission
Auto Trait Implementations§
impl Freeze for OwnedAdmission
impl RefUnwindSafe for OwnedAdmission
impl Send for OwnedAdmission
impl Sync for OwnedAdmission
impl Unpin for OwnedAdmission
impl UnsafeUnpin for OwnedAdmission
impl UnwindSafe for OwnedAdmission
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