pub struct Resolved {
pub declaration: Option<Result<MeshConfig, MeshError>>,
pub trunk: Option<String>,
pub committed: bool,
pub narrowed: Vec<String>,
}Expand description
The declaration in force, and how it was arrived at.
use majordomus_cli::mesh::root::{resolve, Resolved};
let nowhere = tempfile::tempdir().unwrap();
let resolved: Resolved = resolve(nowhere.path(), None);
assert!(resolved.declaration.is_none());
assert!(!resolved.committed && resolved.trunk.is_none());Fields§
§declaration: Option<Result<MeshConfig, MeshError>>What the runtime obeys: None when there is no declaration, an error when the one
there is (or the trunk’s copy) does not parse.
trunk: Option<String>The trunk that was consulted, when one could be named.
committed: boolWhether the trunk holds a committed copy at the declaration’s path.
narrowed: Vec<String>Each widening of the working tree that was not admitted, as one line naming the key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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