pub struct Analysis {
pub kind: InputKind,
pub url: Option<String>,
pub transport: Option<Transport>,
pub command: Option<String>,
pub args: Vec<String>,
pub repository: Option<String>,
pub folder: Option<PathBuf>,
pub snippet_entries: usize,
pub suggested_id: Option<String>,
pub message: String,
}Expand description
The result of analyze.
Fields§
§kind: InputKind§url: Option<String>InputKind::Url: the address as given (trimmed).
transport: Option<Transport>InputKind::Url: from the path (transport_from_url);
InputKind::Command: stdio.
command: Option<String>InputKind::Command: the program and its arguments.
args: Vec<String>§repository: Option<String>InputKind::Repository: the address to clone.
folder: Option<PathBuf>InputKind::Folder: the folder (~ expanded).
snippet_entries: usizeInputKind::Snippet: how many entries it holds.
suggested_id: Option<String>InputKind::Url and InputKind::Command: the id it suggests
(suggest::suggest), before it is made unique in the store.
message: StringThe detection result in English (“Remote server (Streamable HTTP)”).
Trait Implementations§
impl Eq for Analysis
impl StructuralPartialEq for Analysis
Auto Trait Implementations§
impl Forget for Analysis
impl Freeze for Analysis
impl Move for Analysis
impl RefUnwindSafe for Analysis
impl Send for Analysiswhere
RawVecInner: Send,
impl Sync for Analysiswhere
RawVecInner: Sync,
impl Unpin for Analysis
impl UnsafeUnpin for Analysiswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Analysiswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.