pub struct SourceEntry {
pub url: Option<SourceUrl>,
pub path: Option<PathBuf>,
pub version: Option<String>,
pub filter: FilterConfig,
}Expand description
User-declared source entry in mars.toml.
Sources are either git URLs (versioned, fetched via source adapters) or local paths
(unversioned, always syncs current state). Uses url XOR path to
determine type — validation happens in merge().
Fields§
§url: Option<SourceUrl>§path: Option<PathBuf>§version: Option<String>§filter: FilterConfigTrait Implementations§
Source§impl Clone for SourceEntry
impl Clone for SourceEntry
Source§fn clone(&self) -> SourceEntry
fn clone(&self) -> SourceEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceEntry
impl Debug for SourceEntry
Source§impl<'de> Deserialize<'de> for SourceEntry
impl<'de> Deserialize<'de> for SourceEntry
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 SourceEntry
impl PartialEq for SourceEntry
Source§impl Serialize for SourceEntry
impl Serialize for SourceEntry
impl StructuralPartialEq for SourceEntry
Auto Trait Implementations§
impl Freeze for SourceEntry
impl RefUnwindSafe for SourceEntry
impl Send for SourceEntry
impl Sync for SourceEntry
impl Unpin for SourceEntry
impl UnsafeUnpin for SourceEntry
impl UnwindSafe for SourceEntry
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