pub type UpdateGitProviderAccountResponse = GitProviderAccount;
Aliased Type§
struct UpdateGitProviderAccountResponse {
pub id: String,
pub domain: String,
pub https: bool,
pub username: String,
pub token: String,
}
Fields§
§id: String
The Mongo ID of the git provider account.
This field is de/serialized from/to JSON as
{ "_id": { "$oid": "..." }, ...(rest of serialized User) }
domain: String
The domain of the provider.
For git, this cannot include the protocol eg ‘http://’, which is controlled with ‘https’ field.
https: bool
Whether git provider is accessed over http or https.
username: String
The account username
token: String
The token in plain text on the db. If the database / host can be accessed this is insecure.
Trait Implementations
Source§impl Clone for GitProviderAccount
impl Clone for GitProviderAccount
Source§fn clone(&self) -> GitProviderAccount
fn clone(&self) -> GitProviderAccount
Returns a copy 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 moreSource§impl Debug for GitProviderAccount
impl Debug for GitProviderAccount
Source§impl Default for GitProviderAccount
impl Default for GitProviderAccount
Source§fn default() -> GitProviderAccount
fn default() -> GitProviderAccount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GitProviderAccount
impl<'de> Deserialize<'de> for GitProviderAccount
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 From<PartialGitProviderAccount> for GitProviderAccount
impl From<PartialGitProviderAccount> for GitProviderAccount
Source§fn from(value: PartialGitProviderAccount) -> GitProviderAccount
fn from(value: PartialGitProviderAccount) -> GitProviderAccount
Converts to this type from the input type.
Source§impl HasPartial for GitProviderAccount
impl HasPartial for GitProviderAccount
type Partial = PartialGitProviderAccount
fn merge_partial(self, partial: Self::Partial) -> GitProviderAccount
Source§impl PartialDiff<PartialGitProviderAccount, GitProviderAccountDiff> for GitProviderAccount
impl PartialDiff<PartialGitProviderAccount, GitProviderAccountDiff> for GitProviderAccount
Source§fn partial_diff(
&self,
partial: PartialGitProviderAccount,
) -> GitProviderAccountDiff
fn partial_diff( &self, partial: PartialGitProviderAccount, ) -> GitProviderAccountDiff
Diffs a partial against self, returning a partial where all “Some” fields
are not equal to the corresponding field on Self.