pub struct Credentials {
pub url: String,
pub email: String,
pub token: String,
pub user: String,
pub api: Option<String>,
}Expand description
What an account gives its client: where its instance is, and its credentials.
Fields§
§url: StringThe instance’s address (https://github.com, https://ghe.acme.dev), without a trailing slash; empty for a
source of an account of its own.
email: StringThe e-mail some hosts’ tokens go with (Bitbucket’s).
token: String§user: StringWho the account is for the service (a source’s « mine » filters on it); empty when the core does not say.
api: Option<String>Where its API is, in place of where the address says (github.com’s as the core reaches it, a fake one).
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Source§impl Debug for Credentials
impl Debug for Credentials
Source§impl Default for Credentials
impl Default for Credentials
Source§impl PartialEq for Credentials
impl PartialEq for Credentials
impl StructuralPartialEq for Credentials
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin for Credentials
impl UnwindSafe for Credentials
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