pub struct ImageService<'a> { /* private fields */ }Implementations§
Source§impl<'a> ImageService<'a>
impl<'a> ImageService<'a>
Sourcepub async fn get_avatar_gravatar(
&self,
params: GetAvatarGravatarParams,
) -> Result<Value>
pub async fn get_avatar_gravatar( &self, params: GetAvatarGravatarParams, ) -> Result<Value>
获取Gravatar头像
Sourcepub async fn get_image_bing_daily(&self) -> Result<Value>
pub async fn get_image_bing_daily(&self) -> Result<Value>
获取必应每日壁纸
Sourcepub async fn get_image_motou(
&self,
params: GetImageMotouParams,
) -> Result<Value>
pub async fn get_image_motou( &self, params: GetImageMotouParams, ) -> Result<Value>
生成摸摸头GIF (QQ号方式)
Sourcepub async fn get_image_qrcode(
&self,
params: GetImageQrcodeParams,
) -> Result<Value>
pub async fn get_image_qrcode( &self, params: GetImageQrcodeParams, ) -> Result<Value>
动态生成二维码
Sourcepub async fn get_image_tobase_64(
&self,
params: GetImageTobase64Params,
) -> Result<Value>
pub async fn get_image_tobase_64( &self, params: GetImageTobase64Params, ) -> Result<Value>
将在线图片转换为Base64
Sourcepub async fn post_image_compress(
&self,
params: PostImageCompressParams,
) -> Result<Value>
pub async fn post_image_compress( &self, params: PostImageCompressParams, ) -> Result<Value>
无损压缩图片
Sourcepub async fn post_image_frombase_64(
&self,
params: PostImageFrombase64Params,
) -> Result<Value>
pub async fn post_image_frombase_64( &self, params: PostImageFrombase64Params, ) -> Result<Value>
通过Base64编码上传图片
Sourcepub async fn post_image_motou(
&self,
params: PostImageMotouParams,
) -> Result<Value>
pub async fn post_image_motou( &self, params: PostImageMotouParams, ) -> Result<Value>
生成摸摸头GIF (图片上传或URL方式)
Sourcepub async fn post_image_speechless(
&self,
params: PostImageSpeechlessParams,
) -> Result<Value>
pub async fn post_image_speechless( &self, params: PostImageSpeechlessParams, ) -> Result<Value>
生成你们怎么不说话了表情包
Sourcepub async fn post_image_svg(&self, params: PostImageSvgParams) -> Result<Value>
pub async fn post_image_svg(&self, params: PostImageSvgParams) -> Result<Value>
SVG转图片
Trait Implementations§
Source§impl<'a> Clone for ImageService<'a>
impl<'a> Clone for ImageService<'a>
Source§fn clone(&self) -> ImageService<'a>
fn clone(&self) -> ImageService<'a>
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<'a> Freeze for ImageService<'a>
impl<'a> !RefUnwindSafe for ImageService<'a>
impl<'a> Send for ImageService<'a>
impl<'a> Sync for ImageService<'a>
impl<'a> Unpin for ImageService<'a>
impl<'a> !UnwindSafe for ImageService<'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