Struct tbot::types::input_file::PngSticker[][src]

pub struct PngSticker { /* fields omitted */ }

Represents a PNG sticker to be uploaded in a sticker set.


impl PngSticker[src]

pub fn with_bytes(bytes: impl Into<Vec<u8>>) -> Self[src]

Constructs a PngSticker from bytes.

pub fn with_id(id: Id) -> Self[src]

Constructs a PngSticker from a file ID.


Panics if the ID starts with attach://.

pub fn with_url(url: impl Into<String>) -> Self[src]

Constructs a PngSticker from an URL.


Panics if the URL starts with attach://.

Trait Implementations

impl Clone for PngSticker[src]

impl Debug for PngSticker[src]

impl From<PngSticker> for StickerForStickerSet[src]

impl Hash for PngSticker[src]

impl PartialEq<PngSticker> for PngSticker[src]

impl Eq for PngSticker[src]

impl StructuralEq for PngSticker[src]

impl StructuralPartialEq for PngSticker[src]

Auto Trait Implementations

impl RefUnwindSafe for PngSticker

impl Send for PngSticker

impl Sync for PngSticker

impl Unpin for PngSticker

impl UnwindSafe for PngSticker

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.