pub struct GpgKeyHandler { /* private fields */ }
Implementations§
Source§impl GpgKeyHandler
impl GpgKeyHandler
pub fn new(client: FilesClient) -> Self
pub async fn list( &self, cursor: Option<String>, per_page: Option<i64>, ) -> Result<(Vec<GpgKeyEntity>, PaginationInfo)>
pub async fn get(&self, id: i64) -> Result<GpgKeyEntity>
pub async fn create(&self, params: Value) -> Result<GpgKeyEntity>
pub async fn update(&self, id: i64, params: Value) -> Result<GpgKeyEntity>
pub async fn delete(&self, id: i64) -> Result<()>
Trait Implementations§
Source§impl Clone for GpgKeyHandler
impl Clone for GpgKeyHandler
Source§fn clone(&self) -> GpgKeyHandler
fn clone(&self) -> GpgKeyHandler
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 GpgKeyHandler
impl !RefUnwindSafe for GpgKeyHandler
impl Send for GpgKeyHandler
impl Sync for GpgKeyHandler
impl Unpin for GpgKeyHandler
impl !UnwindSafe for GpgKeyHandler
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