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 Forget for RawEntry
impl Freeze for RawEntrywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ItemName>: Freeze,
PhantomData<RenameRule>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for RawEntry
impl RefUnwindSafe for RawEntry
impl Send for RawEntry
impl Sync for RawEntry
impl Unpin for RawEntry
impl UnsafeUnpin for RawEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ItemName>: UnsafeUnpin,
PhantomData<RenameRule>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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