pub struct SetGitCredentialRequest {
pub repo_url: String,
pub token: String,
}Fields§
§repo_url: StringThe repository the credential is for, and the key it is stored under. It is served for this repository and no other, so repointing a resource elsewhere cannot carry the token along.
token: StringThe access token, as pasted
Implementations§
Source§impl SetGitCredentialRequest
impl SetGitCredentialRequest
pub fn new(repo_url: String, token: String) -> SetGitCredentialRequest
Trait Implementations§
Source§impl Clone for SetGitCredentialRequest
impl Clone for SetGitCredentialRequest
Source§fn clone(&self) -> SetGitCredentialRequest
fn clone(&self) -> SetGitCredentialRequest
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 SetGitCredentialRequest
impl Debug for SetGitCredentialRequest
Source§impl Default for SetGitCredentialRequest
impl Default for SetGitCredentialRequest
Source§fn default() -> SetGitCredentialRequest
fn default() -> SetGitCredentialRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetGitCredentialRequest
impl<'de> Deserialize<'de> for SetGitCredentialRequest
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 SetGitCredentialRequest
impl PartialEq for SetGitCredentialRequest
Source§impl Serialize for SetGitCredentialRequest
impl Serialize for SetGitCredentialRequest
impl StructuralPartialEq for SetGitCredentialRequest
Auto Trait Implementations§
impl Freeze for SetGitCredentialRequest
impl RefUnwindSafe for SetGitCredentialRequest
impl Send for SetGitCredentialRequest
impl Sync for SetGitCredentialRequest
impl Unpin for SetGitCredentialRequest
impl UnsafeUnpin for SetGitCredentialRequest
impl UnwindSafe for SetGitCredentialRequest
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