pub struct AmpInfo {
pub is_amp: bool,
pub is_amp_html: bool,
pub amp_url: Option<String>,
pub canonical_url: Option<String>,
pub amp_version: Option<String>,
pub has_amp_runtime: bool,
pub components: Vec<String>,
}Expand description
AMP (Accelerated Mobile Pages) information
Fields§
§is_amp: boolWhether this page is an AMP page
is_amp_html: boolWhether this is an AMP HTML page (⚡ or amp attribute)
amp_url: Option<String>URL to the AMP version of this page (if not AMP)
canonical_url: Option<String>URL to the canonical (non-AMP) version (if this is AMP)
amp_version: Option<String>AMP version detected
has_amp_runtime: boolWhether AMP runtime is included
components: Vec<String>AMP components used
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AmpInfo
impl<'de> Deserialize<'de> for AmpInfo
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
impl StructuralPartialEq for AmpInfo
Auto Trait Implementations§
impl Freeze for AmpInfo
impl RefUnwindSafe for AmpInfo
impl Send for AmpInfo
impl Sync for AmpInfo
impl Unpin for AmpInfo
impl UnwindSafe for AmpInfo
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