Struct octocat_rs::github::util::OctocatConfig
source · pub struct OctocatConfig { /* private fields */ }
Expand description
Used to represent the default Octocat configuration file format.
username = "USERNAME"
access_token = "TOKEN"
Implementations§
source§impl OctocatConfig
impl OctocatConfig
sourcepub fn to_personal_auth(self) -> Authorization
pub fn to_personal_auth(self) -> Authorization
Converts the current OctocatConfig
instance into an
Authorization
instance.
Trait Implementations§
source§impl<'de> Deserialize<'de> for OctocatConfig
impl<'de> Deserialize<'de> for OctocatConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OctocatConfig
impl Send for OctocatConfig
impl Sync for OctocatConfig
impl Unpin for OctocatConfig
impl UnwindSafe for OctocatConfig
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