Struct netrc::Netrc [] [src]

pub struct Netrc {
    pub hosts: Vec<Host>,
    pub default: Option<Machine>,
    pub macros: Vec<Macro>,
}

Fields

Methods

impl Netrc
[src]

Parse a Netrc object from byte stream.

Examples

use netrc::Netrc;
use std::io::Cursor;

let input: Cursor<&[u8]> =
  Cursor::new(b"machine example.com login foo password bar");
let netrc = Netrc::parse(input).unwrap();

Trait Implementations

impl Debug for Netrc
[src]

Formats the value using the given formatter.

impl Default for Netrc
[src]

Returns the "default value" for a type. Read more