pub struct SetFilePermissionRequest<'a> {
pub uri: &'a str,
pub user_explicit: Option<Value>,
pub group_explicit: Option<Value>,
pub same_group: Option<&'a str>,
pub other: Option<&'a str>,
pub anonymous: Option<&'a str>,
pub everyone: Option<&'a str>,
}Expand description
Set file permission request
Fields§
§uri: &'a strFile path (will be converted to URI format internally)
Can be:
- Absolute path: “/folder/file.txt”
- Relative path: “folder/file.txt”
- Already formatted URI: “cloudreve://my/folder/file.txt”
user_explicit: Option<Value>§group_explicit: Option<Value>§same_group: Option<&'a str>§other: Option<&'a str>§anonymous: Option<&'a str>§everyone: Option<&'a str>Trait Implementations§
Source§impl<'a> Debug for SetFilePermissionRequest<'a>
impl<'a> Debug for SetFilePermissionRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for SetFilePermissionRequest<'a>
impl<'a> RefUnwindSafe for SetFilePermissionRequest<'a>
impl<'a> Send for SetFilePermissionRequest<'a>
impl<'a> Sync for SetFilePermissionRequest<'a>
impl<'a> Unpin for SetFilePermissionRequest<'a>
impl<'a> UnwindSafe for SetFilePermissionRequest<'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