Struct carapax::types::MediaGroupItem
source · pub struct MediaGroupItem { /* private fields */ }
Expand description
Represents a media group item.
Implementations§
source§impl MediaGroupItem
impl MediaGroupItem
sourcepub fn for_audio<T>(file: T, metadata: InputMediaAudio) -> MediaGroupItem
pub fn for_audio<T>(file: T, metadata: InputMediaAudio) -> MediaGroupItem
sourcepub fn for_document<T>(file: T, metadata: InputMediaDocument) -> MediaGroupItem
pub fn for_document<T>(file: T, metadata: InputMediaDocument) -> MediaGroupItem
sourcepub fn for_photo<T>(file: T, metadata: InputMediaPhoto) -> MediaGroupItem
pub fn for_photo<T>(file: T, metadata: InputMediaPhoto) -> MediaGroupItem
sourcepub fn for_video<T>(file: T, metadata: InputMediaVideo) -> MediaGroupItem
pub fn for_video<T>(file: T, metadata: InputMediaVideo) -> MediaGroupItem
sourcepub fn with_thumbnail<T>(self, file: T) -> MediaGroupItem
pub fn with_thumbnail<T>(self, file: T) -> MediaGroupItem
Sets a new thumbnail.
§Arguments
value
- Thumbnail.
Note that photo can not have thumbnail and it will be ignored.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MediaGroupItem
impl !RefUnwindSafe for MediaGroupItem
impl Send for MediaGroupItem
impl Sync for MediaGroupItem
impl Unpin for MediaGroupItem
impl !UnwindSafe for MediaGroupItem
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