[][src]Enum telegram_bot::types::requests::MultipartValue

pub enum MultipartValue {
    Text(Text),
    Path {
        path: Text,
        file_name: Option<Text>,
    },
    Data {
        file_name: Text,
        data: Bytes,
    },
}

Variants

Text(Text)
Path

Fields of Path

path: Textfile_name: Option<Text>
Data

Fields of Data

file_name: Textdata: Bytes

Trait Implementations

impl Clone for MultipartValue[src]

impl Debug for MultipartValue[src]

impl Eq for MultipartValue[src]

impl Hash for MultipartValue[src]

impl Ord for MultipartValue[src]

impl PartialEq<MultipartValue> for MultipartValue[src]

impl PartialOrd<MultipartValue> for MultipartValue[src]

impl StructuralEq for MultipartValue[src]

impl StructuralPartialEq for MultipartValue[src]

Auto Trait Implementations

impl RefUnwindSafe for MultipartValue[src]

impl Send for MultipartValue[src]

impl Sync for MultipartValue[src]

impl Unpin for MultipartValue[src]

impl UnwindSafe for MultipartValue[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]