pub struct GithubAPIConfig {
pub base_url: String,
pub token: APIToken,
}
Fields§
§base_url: String
§token: APIToken
Implementations§
Source§impl GithubAPIConfig
impl GithubAPIConfig
pub fn new<T>(base_url: impl Into<String>, token: T) -> Selfwhere
T: ExpirableToken + 'static,
pub fn with_token<T>(token: T) -> Selfwhere
T: ExpirableToken + 'static,
Trait Implementations§
Source§impl Clone for GithubAPIConfig
impl Clone for GithubAPIConfig
Source§fn clone(&self) -> GithubAPIConfig
fn clone(&self) -> GithubAPIConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GithubAPIConfig
impl !RefUnwindSafe for GithubAPIConfig
impl Send for GithubAPIConfig
impl Sync for GithubAPIConfig
impl Unpin for GithubAPIConfig
impl !UnwindSafe for GithubAPIConfig
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