Type Alias UpdateGitProviderAccountResponse

Source
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

Source§

fn clone(&self) -> GitProviderAccount

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GitProviderAccount

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GitProviderAccount

Source§

fn default() -> GitProviderAccount

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for GitProviderAccount

Source§

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

Source§

fn from(value: PartialGitProviderAccount) -> GitProviderAccount

Converts to this type from the input type.
Source§

impl HasPartial for GitProviderAccount

Source§

impl PartialDiff<PartialGitProviderAccount, GitProviderAccountDiff> for GitProviderAccount

Source§

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.
Source§

fn minimize_partial(&self, partial: P) -> P

Source§

impl Serialize for GitProviderAccount

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more