pub struct CustomAttributes {
pub keys: Vec<String>,
}Expand description
The [custom_attributes] section: top-level frontmatter keys this project
carries on purpose (#1361).
A section rather than a bare top-level array so there is somewhere to put the next option, and so the declaration reads as a named decision rather than as one more anonymous list in a file that is mostly named sections.
[custom_attributes]
keys = ["build_id", "reviewed_by"]Fields§
§keys: Vec<String>Top-level frontmatter key names. Names only — no dotted paths; the thing being declared is a top-level key, and a path syntax here would imply nested declarations are checked when they are not.
Implementations§
Trait Implementations§
Source§impl Clone for CustomAttributes
impl Clone for CustomAttributes
Source§impl Debug for CustomAttributes
impl Debug for CustomAttributes
Source§impl Default for CustomAttributes
impl Default for CustomAttributes
Source§impl<'de> Deserialize<'de> for CustomAttributeswhere
CustomAttributes: Default,
impl<'de> Deserialize<'de> for CustomAttributeswhere
CustomAttributes: Default,
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 CustomAttributes
Source§impl PartialEq for CustomAttributes
impl PartialEq for CustomAttributes
Source§impl Serialize for CustomAttributes
impl Serialize for CustomAttributes
impl StructuralPartialEq for CustomAttributes
Auto Trait Implementations§
impl Freeze for CustomAttributes
impl RefUnwindSafe for CustomAttributes
impl Send for CustomAttributes
impl Sync for CustomAttributes
impl Unpin for CustomAttributes
impl UnsafeUnpin for CustomAttributes
impl UnwindSafe for CustomAttributes
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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