pub struct PermissionsApi { /* private fields */ }Expand description
Permissions API client.
Implementations§
Source§impl PermissionsApi
impl PermissionsApi
Sourcepub fn new(http: HttpClient) -> Self
pub fn new(http: HttpClient) -> Self
Create a new Permissions API client.
Sourcepub async fn list(&self) -> Result<Vec<PermissionRequest>>
pub async fn list(&self) -> Result<Vec<PermissionRequest>>
Sourcepub async fn reply(
&self,
request_id: &str,
reply: &PermissionReplyRequest,
) -> Result<PermissionReplyResponse>
pub async fn reply( &self, request_id: &str, reply: &PermissionReplyRequest, ) -> Result<PermissionReplyResponse>
Trait Implementations§
Source§impl Clone for PermissionsApi
impl Clone for PermissionsApi
Source§fn clone(&self) -> PermissionsApi
fn clone(&self) -> PermissionsApi
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 moreAuto Trait Implementations§
impl Freeze for PermissionsApi
impl !RefUnwindSafe for PermissionsApi
impl Send for PermissionsApi
impl Sync for PermissionsApi
impl Unpin for PermissionsApi
impl !UnwindSafe for PermissionsApi
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