pub struct StyleGuideDefinition {
pub extends: Option<String>,
pub source: Option<String>,
pub url: Option<String>,
pub description: Option<String>,
pub languages: Vec<String>,
pub rules: Vec<String>,
pub file_patterns: Vec<String>,
}Expand description
@acp:summary “Style guide definition (RFC-0002)”
Fields§
§extends: Option<String>Base style guide to extend
source: Option<String>Approved source ID for documentation
url: Option<String>Direct URL to style guide documentation
description: Option<String>Human-readable description
languages: Vec<String>Languages this guide applies to
rules: Vec<String>Style rules (key or key=value format)
file_patterns: Vec<String>Glob patterns for auto-applying this guide
Trait Implementations§
Source§impl Clone for StyleGuideDefinition
impl Clone for StyleGuideDefinition
Source§fn clone(&self) -> StyleGuideDefinition
fn clone(&self) -> StyleGuideDefinition
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 StyleGuideDefinition
impl Debug for StyleGuideDefinition
Source§impl Default for StyleGuideDefinition
impl Default for StyleGuideDefinition
Source§fn default() -> StyleGuideDefinition
fn default() -> StyleGuideDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StyleGuideDefinition
impl<'de> Deserialize<'de> for StyleGuideDefinition
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 StyleGuideDefinition
impl RefUnwindSafe for StyleGuideDefinition
impl Send for StyleGuideDefinition
impl Sync for StyleGuideDefinition
impl Unpin for StyleGuideDefinition
impl UnwindSafe for StyleGuideDefinition
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