pub struct Robots { /* private fields */ }Expand description
Full-control robots.txt plugin.
Implementations§
Source§impl Robots
impl Robots
pub fn new() -> Self
pub fn path(self, p: impl Into<String>) -> Self
pub fn block_all(self) -> Self
pub fn allow(self, path: impl Into<String>) -> Self
pub fn disallow(self, path: impl Into<String>) -> Self
pub fn user_agent<F>(self, name: impl Into<String>, f: F) -> Self
pub fn sitemap(self, url: impl Into<String>) -> Self
pub fn sitemap_from_plugin(self, yes: bool) -> Self
pub fn from_noindex(self, yes: bool) -> Self
pub fn crawl_delay(self, seconds: f32) -> Self
pub fn raw(self, line: impl Into<String>) -> Self
Trait Implementations§
Source§impl Plugin for Robots
impl Plugin for Robots
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable plugin identifier used for dependency checks and
crate::App::has_plugin. Read moreSource§fn meta(&self) -> PluginMeta
fn meta(&self) -> PluginMeta
Display name, description, and declared
PluginMeta::sdk version.Auto Trait Implementations§
impl Freeze for Robots
impl RefUnwindSafe for Robots
impl Send for Robots
impl Sync for Robots
impl Unpin for Robots
impl UnsafeUnpin for Robots
impl UnwindSafe for Robots
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