pub struct FolderPermissionRule {
pub folder_id: String,
pub recursive: bool,
pub allow: HashSet<DriveOperation>,
pub deny: HashSet<DriveOperation>,
}Expand description
One configured folder rule.
folder_id is Drive’s own canonical id, not a path — Drive folders
have no stable, unique path (names collide, files can have multiple
legacy parents), so identity is the id, exactly as the browser
bridge’s OriginAllowlist matches exact origin strings rather than
URL patterns.
Fields§
§folder_id: StringThe Drive folder id this rule matches.
recursive: boolWhen true, this rule also matches every descendant of folder_id,
not just the folder itself (depth > 0 in the ancestor chain). A
non-recursive rule only ever matches at depth 0.
allow: HashSet<DriveOperation>Operations explicitly permitted at this folder.
deny: HashSet<DriveOperation>Operations explicitly refused at this folder.
Trait Implementations§
Source§impl Clone for FolderPermissionRule
impl Clone for FolderPermissionRule
Source§fn clone(&self) -> FolderPermissionRule
fn clone(&self) -> FolderPermissionRule
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 FolderPermissionRule
impl Debug for FolderPermissionRule
Source§impl<'de> Deserialize<'de> for FolderPermissionRule
impl<'de> Deserialize<'de> for FolderPermissionRule
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
Auto Trait Implementations§
impl Freeze for FolderPermissionRule
impl RefUnwindSafe for FolderPermissionRule
impl Send for FolderPermissionRule
impl Sync for FolderPermissionRule
impl Unpin for FolderPermissionRule
impl UnsafeUnpin for FolderPermissionRule
impl UnwindSafe for FolderPermissionRule
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