pub struct PermissionsApi<'a> { /* private fields */ }Expand description
Permissions API façade.
Implementations§
Source§impl<'a> PermissionsApi<'a>
impl<'a> PermissionsApi<'a>
Sourcepub fn new(client: &'a DriveClient) -> Self
pub fn new(client: &'a DriveClient) -> Self
Wraps an existing DriveClient for permission operations.
Sourcepub async fn list_all(
&self,
file_or_folder_id: &str,
) -> Result<Vec<DrivePermission>>
pub async fn list_all( &self, file_or_folder_id: &str, ) -> Result<Vec<DrivePermission>>
Fetches every permission on file_or_folder_id, auto-paginating —
permissions.list doesn’t distinguish a file from a folder, so this
works for both (the move engine calls it on the file being moved,
its current parent(s), and the destination folder alike).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PermissionsApi<'a>
impl<'a> !UnwindSafe for PermissionsApi<'a>
impl<'a> Freeze for PermissionsApi<'a>
impl<'a> Send for PermissionsApi<'a>
impl<'a> Sync for PermissionsApi<'a>
impl<'a> Unpin for PermissionsApi<'a>
impl<'a> UnsafeUnpin for PermissionsApi<'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