pub struct Dependencies {
pub dependencies: IndexMap<String, Entry>,
pub local_dependencies: IndexMap<String, Entry>,
}Expand description
A package manifest’s two dependency tables, entries by name in declaration order.
Fields§
§dependencies: IndexMap<String, Entry>§local_dependencies: IndexMap<String, Entry>Implementations§
Source§impl Dependencies
impl Dependencies
Sourcepub fn read(
document: &DocumentMut,
diagnostics: &mut Vec<SchemaDiagnostic>,
) -> Self
pub fn read( document: &DocumentMut, diagnostics: &mut Vec<SchemaDiagnostic>, ) -> Self
Read both tables of a parsed mars.toml, entries in declaration order. An entry that
breaks a rule is left out and reported at [<table>.<name>]. A refusal in [dependencies]
is an error, because a dependent installs from it; [local-dependencies] is never
installed from by a dependent, so its refusals are warnings. A filter conflict, and a
plugin entry’s dialect (ignored there), are warnings on an entry that is kept. A table
that is not a table leaves both out with one error.
Trait Implementations§
Source§impl Clone for Dependencies
impl Clone for Dependencies
Source§impl Debug for Dependencies
impl Debug for Dependencies
Source§impl Default for Dependencies
impl Default for Dependencies
Source§impl PartialEq for Dependencies
impl PartialEq for Dependencies
Source§impl Serialize for Dependencies
impl Serialize for Dependencies
impl StructuralPartialEq for Dependencies
Auto Trait Implementations§
impl Forget for Dependencies
impl Freeze for Dependencies
impl RefUnwindSafe for Dependencies
impl Send for Dependencies
impl Sync for Dependencies
impl Unpin for Dependencies
impl UnsafeUnpin for Dependencies
impl UnwindSafe for Dependencies
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