pub struct Detection {
pub host: Option<String>,
pub repo: Option<String>,
pub forge: Option<Forge>,
}Expand description
What one detection pass observed; every field is an observation, and refusing on what is absent is the caller’s decision.
Fields§
§host: Option<String>The remote’s host, where a remote exists and parses.
repo: Option<String>The project path from the remote: no scheme, no .git suffix.
forge: Option<Forge>The forge the host maps to; None with a host present means the
host is unrecognized.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnsafeUnpin for Detection
impl UnwindSafe for Detection
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