pub struct SecurityTxtOptions {
pub now: DateTime<Utc>,
pub strict: bool,
}Expand description
Options for parsing a security.txt file
Fields§
§now: DateTime<Utc>The current date and time to validate the “Expires” field against
strict: boolWhether to be strict with line endings or more relaxed
Implementations§
Trait Implementations§
Source§impl Clone for SecurityTxtOptions
impl Clone for SecurityTxtOptions
Source§fn clone(&self) -> SecurityTxtOptions
fn clone(&self) -> SecurityTxtOptions
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 SecurityTxtOptions
impl Debug for SecurityTxtOptions
Auto Trait Implementations§
impl Freeze for SecurityTxtOptions
impl RefUnwindSafe for SecurityTxtOptions
impl Send for SecurityTxtOptions
impl Sync for SecurityTxtOptions
impl Unpin for SecurityTxtOptions
impl UnwindSafe for SecurityTxtOptions
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