pub struct CanvasFilterEndpoint(/* private fields */);
Implementations§
Source§impl<'a> CanvasFilterEndpoint
impl<'a> CanvasFilterEndpoint
Sourcepub async fn blurple<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
pub async fn blurple<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
Blurplify your avatar
Sourcepub async fn blurple_2<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
pub async fn blurple_2<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
Blurplify your avatar (using new Discord blurple)
Sourcepub async fn brightness<T: ToString>(
&self,
avatar_url: T,
brightness: u8,
) -> Result<Vec<u8>>
pub async fn brightness<T: ToString>( &self, avatar_url: T, brightness: u8, ) -> Result<Vec<u8>>
Brighten your avatar
Sourcepub async fn color<T: ToString, U: TryInto<Hex>>(
&self,
avatar_url: T,
hex: U,
) -> Result<Vec<u8>>
pub async fn color<T: ToString, U: TryInto<Hex>>( &self, avatar_url: T, hex: U, ) -> Result<Vec<u8>>
Tint your avatar to a certain color
Sourcepub async fn green<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
pub async fn green<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
Greenify(?) your avatar
Sourcepub async fn greyscale<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
pub async fn greyscale<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
Greyscale your avatar
Sourcepub async fn invert_greyscale<T: ToString>(
&self,
avatar_url: T,
) -> Result<Vec<u8>>
pub async fn invert_greyscale<T: ToString>( &self, avatar_url: T, ) -> Result<Vec<u8>>
Invert and grayscale your avatar
Auto Trait Implementations§
impl Freeze for CanvasFilterEndpoint
impl !RefUnwindSafe for CanvasFilterEndpoint
impl Send for CanvasFilterEndpoint
impl Sync for CanvasFilterEndpoint
impl Unpin for CanvasFilterEndpoint
impl !UnwindSafe for CanvasFilterEndpoint
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