pub struct RawEntry {
pub url: Option<String>,
pub path: Option<PathBuf>,
pub subpath: Option<SourceSubpath>,
pub version: Option<String>,
pub dialect: Option<Dialect>,
pub plugin: Option<String>,
pub filter: FilterConfig,
pub unknown: BTreeMap<String, Value>,
}Expand description
The authored shape of an entry, before the rules that need its name. A consumer’s mars.toml
holds entries in this shape, so a file with a bad entry still loads and mars remove can repair
it; Entry::read applies the rules where an entry is used.
Fields§
§url: Option<String>§path: Option<PathBuf>§subpath: Option<SourceSubpath>§version: Option<String>§dialect: Option<Dialect>§plugin: Option<String>§filter: FilterConfig§unknown: BTreeMap<String, Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawEntry
impl<'de> Deserialize<'de> for RawEntry
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 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