pub enum ResourceAccess {
RestrictedView,
View,
Edit,
Delete,
Manage,
}Expand description
What the requesting caller can do with a resource.
Derived from the server’s per-caller effective permission code. Answers “what can I do with this resource?” The value is a translated dsp-cli domain term; raw permission codes never appear above the client boundary.
Variants§
RestrictedView
The caller can view the resource in a restricted form only (e.g. a low-resolution image). They cannot see the full content.
View
The caller can view the resource in full.
Edit
The caller can view and modify the resource’s values.
Delete
The caller can view, modify, and delete the resource.
Manage
The caller has full control over the resource (view, modify, delete, and change permissions).
Implementations§
Trait Implementations§
Source§impl Clone for ResourceAccess
impl Clone for ResourceAccess
Source§fn clone(&self) -> ResourceAccess
fn clone(&self) -> ResourceAccess
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 ResourceAccess
impl Debug for ResourceAccess
Source§impl PartialEq for ResourceAccess
impl PartialEq for ResourceAccess
impl StructuralPartialEq for ResourceAccess
Auto Trait Implementations§
impl Freeze for ResourceAccess
impl RefUnwindSafe for ResourceAccess
impl Send for ResourceAccess
impl Sync for ResourceAccess
impl Unpin for ResourceAccess
impl UnsafeUnpin for ResourceAccess
impl UnwindSafe for ResourceAccess
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