pub struct CustomFormatInfo {
pub name: String,
pub description: String,
pub pattern: Option<String>,
pub example: Option<String>,
}Expand description
What the document says about a script-defined format.
Fields§
§name: StringThe name a rule’s format key refers to.
description: StringWhat the check enforces, in the author’s words.
pattern: Option<String>The advisory pattern, when the registration gave one.
example: Option<String>An example value, when the registration gave one.
Trait Implementations§
Source§impl Clone for CustomFormatInfo
impl Clone for CustomFormatInfo
Source§impl Debug for CustomFormatInfo
impl Debug for CustomFormatInfo
impl Eq for CustomFormatInfo
Source§impl PartialEq for CustomFormatInfo
impl PartialEq for CustomFormatInfo
impl StructuralPartialEq for CustomFormatInfo
Auto Trait Implementations§
impl Freeze for CustomFormatInfo
impl RefUnwindSafe for CustomFormatInfo
impl Send for CustomFormatInfo
impl Sync for CustomFormatInfo
impl Unpin for CustomFormatInfo
impl UnsafeUnpin for CustomFormatInfo
impl UnwindSafe for CustomFormatInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more