Struct gyazo_client::GyazoClient
source · pub struct GyazoClient { /* private fields */ }Expand description
Gyazo API client
Implementations§
source§impl GyazoClient
impl GyazoClient
sourcepub async fn get_image(
&self,
image_id: &str,
) -> Result<GyazoImageResponse, GyazoError>
pub async fn get_image( &self, image_id: &str, ) -> Result<GyazoImageResponse, GyazoError>
Get an image by its ID
sourcepub async fn list_images(&self) -> Result<Vec<GyazoImageResponse>, GyazoError>
pub async fn list_images(&self) -> Result<Vec<GyazoImageResponse>, GyazoError>
Get a list of images
sourcepub async fn upload_image(
&self,
param: UploadParams,
) -> Result<UploadImageResponse, GyazoError>
pub async fn upload_image( &self, param: UploadParams, ) -> Result<UploadImageResponse, GyazoError>
Upload an image
sourcepub async fn delete_image(
&self,
image_id: &str,
) -> Result<DeleteImageResponse, GyazoError>
pub async fn delete_image( &self, image_id: &str, ) -> Result<DeleteImageResponse, GyazoError>
Delete an image by its ID
sourcepub async fn onembed_image(
&self,
url: &str,
) -> Result<OembedResponse, GyazoError>
pub async fn onembed_image( &self, url: &str, ) -> Result<OembedResponse, GyazoError>
OnEnbed an image
Auto Trait Implementations§
impl Freeze for GyazoClient
impl !RefUnwindSafe for GyazoClient
impl Send for GyazoClient
impl Sync for GyazoClient
impl Unpin for GyazoClient
impl !UnwindSafe for GyazoClient
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