pub struct MentionFile {
pub mentions: Vec<Mention>,
pub extra: BTreeMap<String, Value>,
}Expand description
One target’s mention file (docs/mentions/<slug>.toml).
The file is a table with one mention array of tables, so a hand-edited file with its
own top-level keys keeps them (the same preservation rule as Mention::extra).
Fields§
§mentions: Vec<Mention>The target’s mentions, in the order they appear in the issue(s).
extra: BTreeMap<String, Value>Unknown top-level keys, preserved on rewrite.
Implementations§
Trait Implementations§
Source§impl Clone for MentionFile
impl Clone for MentionFile
Source§impl Debug for MentionFile
impl Debug for MentionFile
Source§impl Default for MentionFile
impl Default for MentionFile
Source§impl<'de> Deserialize<'de> for MentionFile
impl<'de> Deserialize<'de> for MentionFile
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
Source§impl PartialEq for MentionFile
impl PartialEq for MentionFile
Source§impl Serialize for MentionFile
impl Serialize for MentionFile
impl StructuralPartialEq for MentionFile
Auto Trait Implementations§
impl Freeze for MentionFile
impl RefUnwindSafe for MentionFile
impl Send for MentionFile
impl Sync for MentionFile
impl Unpin for MentionFile
impl UnsafeUnpin for MentionFile
impl UnwindSafe for MentionFile
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<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