pub struct RobotsMeta {
pub index: bool,
pub follow: bool,
pub archive: bool,
pub cache: bool,
pub snippet: bool,
pub max_snippet: i32,
pub max_image_preview: Option<String>,
pub max_video_preview: i32,
pub raw: Option<String>,
}Expand description
Robots meta directives
Fields§
§index: boolCan be indexed
follow: boolLinks can be followed
archive: boolCan be archived
cache: boolCan be cached
snippet: boolCan show snippet
max_snippet: i32Max snippet length (-1 = unlimited)
max_image_preview: Option<String>Max image preview (none, standard, large)
max_video_preview: i32Max video preview seconds
raw: Option<String>Raw robots content
Implementations§
Source§impl RobotsMeta
impl RobotsMeta
Sourcepub fn noindex_nofollow() -> Self
pub fn noindex_nofollow() -> Self
Create noindex nofollow
Trait Implementations§
Source§impl Clone for RobotsMeta
impl Clone for RobotsMeta
Source§fn clone(&self) -> RobotsMeta
fn clone(&self) -> RobotsMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RobotsMeta
impl Debug for RobotsMeta
Source§impl Default for RobotsMeta
impl Default for RobotsMeta
Source§fn default() -> RobotsMeta
fn default() -> RobotsMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RobotsMeta
impl<'de> Deserialize<'de> for RobotsMeta
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
Auto Trait Implementations§
impl Freeze for RobotsMeta
impl RefUnwindSafe for RobotsMeta
impl Send for RobotsMeta
impl Sync for RobotsMeta
impl Unpin for RobotsMeta
impl UnwindSafe for RobotsMeta
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