pub enum NpmrcConfigType {
Registry {
scope: Option<String>,
registry: String,
raw: String,
},
AuthToken {
registry: String,
token: String,
},
Password {
registry: String,
password: String,
},
Username {
registry: String,
},
Other(String),
}Expand description
Recognized line configurations in .npmrc files.
Variants§
Registry
Registry URL specification (e.g. @scope:registry=https://... or registry=https://...).
Fields
AuthToken
Auth token credential line (e.g. //...:_authToken="...").
Fields
Password
Legacy basic auth password line (e.g. //...:_password=...).
Fields
Username
Legacy basic auth username line (e.g. //...:username=oauth2accesstoken).
Other(String)
Comments, blank lines, or other unrecognized configuration keys.
Implementations§
Trait Implementations§
Source§impl Clone for NpmrcConfigType
impl Clone for NpmrcConfigType
Source§impl Debug for NpmrcConfigType
impl Debug for NpmrcConfigType
impl Eq for NpmrcConfigType
Source§impl PartialEq for NpmrcConfigType
impl PartialEq for NpmrcConfigType
impl StructuralPartialEq for NpmrcConfigType
Auto Trait Implementations§
impl Freeze for NpmrcConfigType
impl RefUnwindSafe for NpmrcConfigType
impl Send for NpmrcConfigType
impl Sync for NpmrcConfigType
impl Unpin for NpmrcConfigType
impl UnsafeUnpin for NpmrcConfigType
impl UnwindSafe for NpmrcConfigType
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§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.