pub struct MediaHandle {
pub id: MediaId,
pub expires_at: Instant,
pub progress: Option<ProgressInfo>,
}Expand description
A handle representing uploaded media.
Fields§
§id: MediaIdID that can be used in API calls (e.g. to attach media to tweet).
expires_at: InstantNumber of second the media can be used in other API calls.
progress: Option<ProgressInfo>Progress information. If present determines whether RawMedia can be used.
Implementations§
Trait Implementations§
Source§impl Clone for MediaHandle
impl Clone for MediaHandle
Source§fn clone(&self) -> MediaHandle
fn clone(&self) -> MediaHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MediaHandle
impl RefUnwindSafe for MediaHandle
impl Send for MediaHandle
impl Sync for MediaHandle
impl Unpin for MediaHandle
impl UnwindSafe for MediaHandle
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