Enum travis::Credential [] [src]

pub enum Credential {
    Token(String),
    Github(String),
}

Representation of types of API credentials used to authenticate the client

Variants

A Travis API token

Typically obtained from travis token ruby cli

A Github API token

This will be immediately exchanged for a travis token after constructing a travis::Client instance. Care should be taken to associate appropriate Github scopes with these tokens to perform target operations for on oss vs private repositories

Trait Implementations

impl Clone for Credential
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Credential
[src]

[src]

Formats the value using the given formatter.