pub struct PastebinClient { /* private fields */ }Implementations§
Source§impl PastebinClient
impl PastebinClient
pub fn new() -> Result<Self>
pub fn with_token(token: &str) -> Result<Self>
pub fn with_delete_token(paste_id: &str, token: &str) -> Result<Self>
pub fn create_paste(&self, request: CreatePasteRequest) -> Result<PasteCreated>
pub fn get_paste(&self, id: &str) -> Result<Paste>
pub fn list_pastes(&self, limit: usize) -> Result<Vec<Paste>>
pub fn delete_paste(&self, id: &str) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for PastebinClient
impl !UnwindSafe for PastebinClient
impl Forget for PastebinClient
impl Freeze for PastebinClient
impl Send for PastebinClient
impl Sync for PastebinClient
impl Unpin for PastebinClient
impl UnsafeUnpin for PastebinClient
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