pub struct DetectReport {
pub path: String,
pub suggested_id: String,
pub under_workspace: bool,
pub relative_root: Option<String>,
pub mountable: bool,
pub has_nested_brain: bool,
pub existing_scope: Option<String>,
pub tips: Vec<String>,
}Expand description
Report from detect_path — what id to use for import/attach.
Fields§
§path: StringAbsolute path inspected.
suggested_id: StringSuggested SubBrain id (directory name, sanitized).
under_workspace: boolTrue if path is under workspace.
relative_root: Option<String>Workspace-relative root when under_workspace.
mountable: boolTrue if --mount / attach is possible (under workspace).
has_nested_brain: boolTrue if path has its own .brain/db.sqlite.
existing_scope: Option<String>Existing SubBrain id if this root is already registered.
tips: Vec<String>Human tips.
Trait Implementations§
Source§impl Clone for DetectReport
impl Clone for DetectReport
Source§fn clone(&self) -> DetectReport
fn clone(&self) -> DetectReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DetectReport
impl Debug for DetectReport
Auto Trait Implementations§
impl Freeze for DetectReport
impl RefUnwindSafe for DetectReport
impl Send for DetectReport
impl Sync for DetectReport
impl Unpin for DetectReport
impl UnsafeUnpin for DetectReport
impl UnwindSafe for DetectReport
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