pub struct Preview {
pub url: String,
pub document: Html,
}
Fields§
§url: String
§document: Html
Implementations§
Source§impl Preview
impl Preview
pub fn new(url: &str) -> Preview
pub async fn async_new(url: &str) -> Preview
pub async fn async_fetch_preview(&self) -> Result<PreviewResponse, ()>
Sourcepub fn fetch_preview(&self) -> PreviewResponse
pub fn fetch_preview(&self) -> PreviewResponse
Fetch preview fetches all the supported properties
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Preview
impl !RefUnwindSafe for Preview
impl !Send for Preview
impl !Sync for Preview
impl Unpin for Preview
impl UnwindSafe for Preview
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