pub struct RawEntry {
pub key: String,
pub value: String,
pub inline_comment: Option<String>,
pub leading_comments: Vec<String>,
}Expand description
An unrecognized key-value entry preserved for round-trip fidelity.
Stores the key, value, optional inline comment, and any leading comments
that appeared before the entry in the original .repo file.
Fields§
§key: StringThe option key name.
value: StringThe option value.
inline_comment: Option<String>Optional inline comment after the value (text after #).
leading_comments: Vec<String>Comment lines immediately preceding this entry.
Trait Implementations§
impl Eq for RawEntry
impl StructuralPartialEq for RawEntry
Auto Trait Implementations§
impl Freeze for RawEntry
impl RefUnwindSafe for RawEntry
impl Send for RawEntry
impl Sync for RawEntry
impl Unpin for RawEntry
impl UnsafeUnpin for RawEntry
impl UnwindSafe for RawEntry
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<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.