pub struct MediaEntityResponse {
pub url: String,
pub content_type: ContentType,
}
Fields§
§url: String
Cached accessible URL
content_type: ContentType
Media type
Implementations§
Source§impl MediaEntityResponse
impl MediaEntityResponse
pub fn new(url: String, content_type: ContentType) -> MediaEntityResponse
Trait Implementations§
Source§impl Clone for MediaEntityResponse
impl Clone for MediaEntityResponse
Source§fn clone(&self) -> MediaEntityResponse
fn clone(&self) -> MediaEntityResponse
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 moreSource§impl Debug for MediaEntityResponse
impl Debug for MediaEntityResponse
Source§impl Default for MediaEntityResponse
impl Default for MediaEntityResponse
Source§fn default() -> MediaEntityResponse
fn default() -> MediaEntityResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MediaEntityResponse
impl<'de> Deserialize<'de> for MediaEntityResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MediaEntityResponse
impl PartialEq for MediaEntityResponse
Source§impl Serialize for MediaEntityResponse
impl Serialize for MediaEntityResponse
impl StructuralPartialEq for MediaEntityResponse
Auto Trait Implementations§
impl Freeze for MediaEntityResponse
impl RefUnwindSafe for MediaEntityResponse
impl Send for MediaEntityResponse
impl Sync for MediaEntityResponse
impl Unpin for MediaEntityResponse
impl UnwindSafe for MediaEntityResponse
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