pub struct PremiumEndpoint(/* private fields */);
Expand description
An endpoint for premium users
§Examples
use some_random_api::Client;
use std::fs::write;
write(
"petpet.gif",
Client::new(None::<String>)
.premium
.petpet("avatar url").await?,
)?;
Implementations§
Source§impl PremiumEndpoint
impl PremiumEndpoint
Sourcepub async fn among_us<T: ToString, U: ToString, V: ToString>(
&self,
username: T,
avatar_url: U,
text: Option<V>,
) -> Result<Vec<u8>>
pub async fn among_us<T: ToString, U: ToString, V: ToString>( &self, username: T, avatar_url: U, text: Option<V>, ) -> Result<Vec<u8>>
Sussy
pub async fn petpet<T: ToString>(&self, avatar_url: T) -> Result<Vec<u8>>
pub async fn rank_card(&self, rank_card: RankCard) -> Result<Vec<u8>>
pub async fn welcome(&self, welcome_image: WelcomeImage) -> Result<Vec<u8>>
Auto Trait Implementations§
impl Freeze for PremiumEndpoint
impl !RefUnwindSafe for PremiumEndpoint
impl Send for PremiumEndpoint
impl Sync for PremiumEndpoint
impl Unpin for PremiumEndpoint
impl !UnwindSafe for PremiumEndpoint
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