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

pub struct ChatPhoto(_);

Represents a chat photo to be set.

Note that a chat photo cannot be set via either a file ID or a URL.


impl ChatPhoto[src]

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

Constructs a ChatPhoto.

Trait Implementations

impl Clone for ChatPhoto[src]

impl Debug for ChatPhoto[src]

impl Hash for ChatPhoto[src]

impl PartialEq<ChatPhoto> for ChatPhoto[src]

impl Serialize for ChatPhoto[src]

impl Eq for ChatPhoto[src]

impl StructuralEq for ChatPhoto[src]

impl StructuralPartialEq for ChatPhoto[src]

Auto Trait Implementations

impl RefUnwindSafe for ChatPhoto

impl Send for ChatPhoto

impl Sync for ChatPhoto

impl Unpin for ChatPhoto

impl UnwindSafe for ChatPhoto

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.