pub enum NetRc {
Ignored,
Optional,
Required,
}
Expand description
Options for .netrc
parsing.
Variants
Ignored
Ignoring .netrc
file and use information from url
This option is default
Optional
The use of your ~/.netrc
file is optional, and information in the URL is to be
preferred. The file will be scanned for the host and user name (to find the password only)
or for the host only, to find the first user name and password after that machine, which
ever information is not specified in the URL.
Required
This value tells the library that use of the file is required, to ignore the information in the URL, and to search the file for the host only.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NetRc
impl Send for NetRc
impl Sync for NetRc
impl Unpin for NetRc
impl UnwindSafe for NetRc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more