pub struct WriteQueryDescriptor<'a>(pub PathQueryDescriptor<'a>);
Tuple Fields§
§0: PathQueryDescriptor<'a>
Trait Implementations§
Source§impl<'a> Clone for WriteQueryDescriptor<'a>
impl<'a> Clone for WriteQueryDescriptor<'a>
Source§fn clone(&self) -> WriteQueryDescriptor<'a>
fn clone(&self) -> WriteQueryDescriptor<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for WriteQueryDescriptor<'a>
impl<'a> Debug for WriteQueryDescriptor<'a>
Source§impl QueryDescriptor for WriteQueryDescriptor<'_>
impl QueryDescriptor for WriteQueryDescriptor<'_>
type AllowDesc = WriteDescriptor
type DenyDesc = WriteDescriptor
fn flag_name() -> &'static str
fn display_name(&self) -> Cow<'_, str>
fn from_allow(allow: &Self::AllowDesc) -> Self
fn as_allow(&self) -> Option<Self::AllowDesc>
fn as_deny(&self) -> Self::DenyDesc
Source§fn check_in_permission(
&self,
perm: &mut UnaryPermission<Self::AllowDesc, Self::DenyDesc>,
api_name: Option<&str>,
) -> Result<(), PermissionDeniedError>
fn check_in_permission( &self, perm: &mut UnaryPermission<Self::AllowDesc, Self::DenyDesc>, api_name: Option<&str>, ) -> Result<(), PermissionDeniedError>
Generic check function to check this descriptor against a
UnaryPermission
.fn matches_allow(&self, other: &Self::AllowDesc) -> bool
fn matches_deny(&self, other: &Self::DenyDesc) -> bool
Source§fn revokes(&self, other: &Self::AllowDesc) -> bool
fn revokes(&self, other: &Self::AllowDesc) -> bool
Gets if this query descriptor should revoke the provided allow descriptor.
fn stronger_than_deny(&self, other: &Self::DenyDesc) -> bool
fn overlaps_deny(&self, other: &Self::DenyDesc) -> bool
Auto Trait Implementations§
impl<'a> Freeze for WriteQueryDescriptor<'a>
impl<'a> RefUnwindSafe for WriteQueryDescriptor<'a>
impl<'a> Send for WriteQueryDescriptor<'a>
impl<'a> Sync for WriteQueryDescriptor<'a>
impl<'a> Unpin for WriteQueryDescriptor<'a>
impl<'a> UnwindSafe for WriteQueryDescriptor<'a>
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