pub enum NetRc {
Ignored = 0,
Optional = 1,
Required = 2,
}
Expand description
Options for .netrc
parsing.
Variants§
Ignored = 0
Ignoring .netrc
file and use information from url
This option is default
Optional = 1
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 = 2
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 Freeze for NetRc
impl RefUnwindSafe for NetRc
impl Send for NetRc
impl Sync for NetRc
impl Unpin for NetRc
impl UnwindSafe for NetRc
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