pub enum ParsedSpec {
Npm {
pkg: String,
name: String,
},
Github {
owner: String,
repo: String,
name: String,
},
Unknown {
ecosystem: String,
payload: String,
name: String,
},
}Expand description
A parsed ask.json spec string. Discriminated the same way as the TS
ParsedSpec union.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ParsedSpec
impl Clone for ParsedSpec
Source§impl Debug for ParsedSpec
impl Debug for ParsedSpec
impl Eq for ParsedSpec
Source§impl PartialEq for ParsedSpec
impl PartialEq for ParsedSpec
impl StructuralPartialEq for ParsedSpec
Auto Trait Implementations§
impl Forget for ParsedSpec
impl Freeze for ParsedSpec
impl Move for ParsedSpec
impl RefUnwindSafe for ParsedSpec
impl Send for ParsedSpec
impl Sync for ParsedSpec
impl Unpin for ParsedSpec
impl UnsafeUnpin for ParsedSpec
impl UnwindSafe for ParsedSpec
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