pub struct Response {
pub response_type: ResponseType,
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>,
}Expand description
Endpoint response to an oEmbed request
See section 2.3.4 of the oEmbed specification.
Fields§
§response_type: ResponseType§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>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 PartialOrd for Response
impl PartialOrd for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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