pub struct SessionRpcPermissionsFolderTrust<'a> { /* private fields */ }Expand description
session.permissions.folderTrust.* RPCs.
Implementations§
Source§impl<'a> SessionRpcPermissionsFolderTrust<'a>
impl<'a> SessionRpcPermissionsFolderTrust<'a>
Sourcepub async fn is_trusted(
&self,
params: FolderTrustCheckParams,
) -> Result<FolderTrustCheckResult, Error>
pub async fn is_trusted( &self, params: FolderTrustCheckParams, ) -> Result<FolderTrustCheckResult, Error>
Reports whether a folder is trusted according to the user’s folder trust state.
Wire method: session.permissions.folderTrust.isTrusted.
§Parameters
params- Folder path to check for trust.
§Returns
Folder trust check result.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn add_trusted(
&self,
params: FolderTrustAddParams,
) -> Result<PermissionsFolderTrustAddTrustedResult, Error>
pub async fn add_trusted( &self, params: FolderTrustAddParams, ) -> Result<PermissionsFolderTrustAddTrustedResult, Error>
Adds a folder to the user’s trusted folders list.
Wire method: session.permissions.folderTrust.addTrusted.
§Parameters
params- Folder path to add to trusted folders.
§Returns
Indicates whether the operation succeeded.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcPermissionsFolderTrust<'a>
impl<'a> Clone for SessionRpcPermissionsFolderTrust<'a>
Source§fn clone(&self) -> SessionRpcPermissionsFolderTrust<'a>
fn clone(&self) -> SessionRpcPermissionsFolderTrust<'a>
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 moreimpl<'a> Copy for SessionRpcPermissionsFolderTrust<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcPermissionsFolderTrust<'a>
impl<'a> !RefUnwindSafe for SessionRpcPermissionsFolderTrust<'a>
impl<'a> Send for SessionRpcPermissionsFolderTrust<'a>
impl<'a> Sync for SessionRpcPermissionsFolderTrust<'a>
impl<'a> Unpin for SessionRpcPermissionsFolderTrust<'a>
impl<'a> UnsafeUnpin for SessionRpcPermissionsFolderTrust<'a>
impl<'a> !UnwindSafe for SessionRpcPermissionsFolderTrust<'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