pub struct EmbedResponse {
pub oembed_type: EmbedType,
pub version: String,
pub title: Option<String>,
pub author_name: Option<String>,
pub author_url: Option<String>,
pub provider_name: Option<String>,
pub provider_url: Option<String>,
pub cache_age: Option<String>,
pub thumbnail_url: Option<String>,
pub thumbnail_width: Option<i32>,
pub thumbnail_height: Option<i32>,
pub extra: HashMap<String, Value>,
}
Expand description
oEmbed response
See the oembed spec for more information
Fields§
§oembed_type: EmbedType
§version: String
§title: Option<String>
§provider_name: Option<String>
§provider_url: Option<String>
§cache_age: Option<String>
§thumbnail_url: Option<String>
§thumbnail_width: Option<i32>
§thumbnail_height: Option<i32>
§extra: HashMap<String, Value>
Trait Implementations§
Source§impl Debug for EmbedResponse
impl Debug for EmbedResponse
Source§impl<'de> Deserialize<'de> for EmbedResponse
impl<'de> Deserialize<'de> for EmbedResponse
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 EmbedResponse
impl PartialEq for EmbedResponse
Source§impl Serialize for EmbedResponse
impl Serialize for EmbedResponse
impl StructuralPartialEq for EmbedResponse
Auto Trait Implementations§
impl Freeze for EmbedResponse
impl RefUnwindSafe for EmbedResponse
impl Send for EmbedResponse
impl Sync for EmbedResponse
impl Unpin for EmbedResponse
impl UnwindSafe for EmbedResponse
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