Struct sherpa::config::Config
[−]
[src]
pub struct Config { pub expires_at: DateTime<Utc>, pub github_handle: String, pub github_token: String, pub path: String, pub token: String, }
Fields
expires_at: DateTime<Utc>
github_handle: String
github_token: String
path: String
token: String
Methods
impl Config
[src]
fn new(
github_handle: &str,
github_token: &str,
token: &str,
expires_at: DateTime<Utc>,
path: &str
) -> Config
[src]
github_handle: &str,
github_token: &str,
token: &str,
expires_at: DateTime<Utc>,
path: &str
) -> Config
fn validate<C: Client>(&self, client: &C) -> Result<Config>
[src]
fn is_expired(&self) -> bool
[src]
Trait Implementations
impl Clone for Config
[src]
fn clone(&self) -> Config
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more