Struct carapax::types::UploadStickerFile
source · pub struct UploadStickerFile { /* private fields */ }
Expand description
Uploads a file with a sticker for later use in
the CreateNewStickerSet
and AddStickerToSet
methods.
The file can be used multiple times.
Implementations§
source§impl UploadStickerFile
impl UploadStickerFile
sourcepub fn new<T>(
user_id: i64,
sticker: T,
sticker_format: StickerFormat
) -> UploadStickerFile
pub fn new<T>( user_id: i64, sticker: T, sticker_format: StickerFormat ) -> UploadStickerFile
Creates a new UploadStickerFile
.
§Arguments
user_id
- User identifier of sticker file owner.sticker
- A file with the sticker in WEBP, PNG, TGS, or WEBM format.sticker_format
- Format of the sticker.
Trait Implementations§
source§impl Debug for UploadStickerFile
impl Debug for UploadStickerFile
source§impl Method for UploadStickerFile
impl Method for UploadStickerFile
Auto Trait Implementations§
impl Freeze for UploadStickerFile
impl !RefUnwindSafe for UploadStickerFile
impl Send for UploadStickerFile
impl Sync for UploadStickerFile
impl Unpin for UploadStickerFile
impl !UnwindSafe for UploadStickerFile
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more