pub struct CreatePatResponse {
pub token: String,
pub pat: Option<Box<PersonalAccessToken>>,
}Expand description
CreatePatResponse : The full token (prefix + secret) is returned ONLY on creation. Store it now or you’ll have to recreate; the API never returns the secret again.
Fields§
§token: String§pat: Option<Box<PersonalAccessToken>>Implementations§
Source§impl CreatePatResponse
impl CreatePatResponse
Sourcepub fn new(token: String) -> CreatePatResponse
pub fn new(token: String) -> CreatePatResponse
The full token (prefix + secret) is returned ONLY on creation. Store it now or you’ll have to recreate; the API never returns the secret again.
Trait Implementations§
Source§impl Clone for CreatePatResponse
impl Clone for CreatePatResponse
Source§fn clone(&self) -> CreatePatResponse
fn clone(&self) -> CreatePatResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreatePatResponse
impl Debug for CreatePatResponse
Source§impl Default for CreatePatResponse
impl Default for CreatePatResponse
Source§fn default() -> CreatePatResponse
fn default() -> CreatePatResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreatePatResponse
impl<'de> Deserialize<'de> for CreatePatResponse
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
Source§impl PartialEq for CreatePatResponse
impl PartialEq for CreatePatResponse
Source§fn eq(&self, other: &CreatePatResponse) -> bool
fn eq(&self, other: &CreatePatResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreatePatResponse
impl Serialize for CreatePatResponse
impl StructuralPartialEq for CreatePatResponse
Auto Trait Implementations§
impl Freeze for CreatePatResponse
impl RefUnwindSafe for CreatePatResponse
impl Send for CreatePatResponse
impl Sync for CreatePatResponse
impl Unpin for CreatePatResponse
impl UnsafeUnpin for CreatePatResponse
impl UnwindSafe for CreatePatResponse
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