pub struct ConsumerRequest<'a> {
pub url: &'a str,
pub max_width: Option<i32>,
pub max_height: Option<i32>,
pub params: Option<HashMap<&'a str, &'a str>>,
}
Expand description
Request for fetching oEmbed data
See the oembed specification for more information
Fields§
§url: &'a str
§max_width: Option<i32>
§max_height: Option<i32>
§params: Option<HashMap<&'a str, &'a str>>
Trait Implementations§
Source§impl<'a> Default for ConsumerRequest<'a>
impl<'a> Default for ConsumerRequest<'a>
Source§fn default() -> ConsumerRequest<'a>
fn default() -> ConsumerRequest<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ConsumerRequest<'a>
impl<'a> RefUnwindSafe for ConsumerRequest<'a>
impl<'a> Send for ConsumerRequest<'a>
impl<'a> Sync for ConsumerRequest<'a>
impl<'a> Unpin for ConsumerRequest<'a>
impl<'a> UnwindSafe for ConsumerRequest<'a>
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