pub struct HeaderConfig {
pub builtin: Option<String>,
pub path: Option<PathBuf>,
pub text: Option<String>,
pub keywords: Vec<String>,
}Expand description
Header template and recognition settings.
Exactly one of builtin, path, or text must be set.
Fields§
§builtin: Option<String>The built-in template key, when using a bundled header.
path: Option<PathBuf>The template file.
Config::load renders path templates and resolves relative paths from the config
directory.
text: Option<String>The inline template, when the header is stored in the config file.
keywords: Vec<String>Case-insensitive words required in a recognized header; defaults to "copyright".
Trait Implementations§
Source§impl Clone for HeaderConfig
impl Clone for HeaderConfig
Source§fn clone(&self) -> HeaderConfig
fn clone(&self) -> HeaderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeaderConfig
impl Debug for HeaderConfig
Source§impl<'de> Deserialize<'de> for HeaderConfig
impl<'de> Deserialize<'de> for HeaderConfig
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
impl Eq for HeaderConfig
Source§impl PartialEq for HeaderConfig
impl PartialEq for HeaderConfig
impl StructuralPartialEq for HeaderConfig
Auto Trait Implementations§
impl Freeze for HeaderConfig
impl RefUnwindSafe for HeaderConfig
impl Send for HeaderConfig
impl Sync for HeaderConfig
impl Unpin for HeaderConfig
impl UnsafeUnpin for HeaderConfig
impl UnwindSafe for HeaderConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.