Struct instagram_link::MediaMetadata
source · [−]pub struct MediaMetadata {
pub ig_id: u64,
pub shortcode: String,
pub is_public_shortcode: Option<bool>,
}
Fields
ig_id: u64
shortcode: String
is_public_shortcode: Option<bool>
Implementations
sourceimpl MediaMetadata
impl MediaMetadata
pub fn with_ig_id(ig_id: u64) -> Self
pub fn with_shortcode(shortcode: String) -> Result<Self, String>
Trait Implementations
sourceimpl Clone for MediaMetadata
impl Clone for MediaMetadata
sourcefn clone(&self) -> MediaMetadata
fn clone(&self) -> MediaMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MediaMetadata
impl Debug for MediaMetadata
sourceimpl PartialEq<MediaMetadata> for MediaMetadata
impl PartialEq<MediaMetadata> for MediaMetadata
sourcefn eq(&self, other: &MediaMetadata) -> bool
fn eq(&self, other: &MediaMetadata) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MediaMetadata) -> bool
fn ne(&self, other: &MediaMetadata) -> bool
This method tests for !=
.
impl Eq for MediaMetadata
impl StructuralEq for MediaMetadata
impl StructuralPartialEq for MediaMetadata
Auto Trait Implementations
impl RefUnwindSafe for MediaMetadata
impl Send for MediaMetadata
impl Sync for MediaMetadata
impl Unpin for MediaMetadata
impl UnwindSafe for MediaMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more