pub enum PermissionLevel {
ViewOnly,
ViewDownload,
UploadOnly,
ViewDownloadUpload,
ViewDownloadUploadEdit,
FolderControl,
}Expand description
Permission levels for folder access
Variants§
ViewOnly
View only access
ViewDownload
View and download
UploadOnly
Upload only (publish)
ViewDownloadUpload
View, download, and upload
ViewDownloadUploadEdit
View, download, upload, and edit
FolderControl
Full folder control
Implementations§
Source§impl PermissionLevel
impl PermissionLevel
Sourcepub fn to_actions(&self) -> Vec<&'static str>
pub fn to_actions(&self) -> Vec<&'static str>
Convert to API actions array
Trait Implementations§
Source§impl Clone for PermissionLevel
impl Clone for PermissionLevel
Source§fn clone(&self) -> PermissionLevel
fn clone(&self) -> PermissionLevel
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 Debug for PermissionLevel
impl Debug for PermissionLevel
Source§impl<'de> Deserialize<'de> for PermissionLevel
impl<'de> Deserialize<'de> for PermissionLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PermissionLevel
impl PartialEq for PermissionLevel
Source§impl Serialize for PermissionLevel
impl Serialize for PermissionLevel
impl Copy for PermissionLevel
impl Eq for PermissionLevel
impl StructuralPartialEq for PermissionLevel
Auto Trait Implementations§
impl Freeze for PermissionLevel
impl RefUnwindSafe for PermissionLevel
impl Send for PermissionLevel
impl Sync for PermissionLevel
impl Unpin for PermissionLevel
impl UnsafeUnpin for PermissionLevel
impl UnwindSafe for PermissionLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.