pub struct RepoRegistration {
pub account: String,
pub provider: String,
}Expand description
A single registration channel for a repository. provider is the
channel the repo was connected through: github (the GitHub App),
bitbucket (Bitbucket OAuth), or cli (reserved for direct CLI
registration — not yet emitted). account is the connecting
account/workspace login.
JSON schema
{
"title": "RepoRegistration",
"description": "A single registration channel for a repository.
`provider` is the channel the repo was connected through: `github` (the
GitHub App), `bitbucket` (Bitbucket OAuth), or `cli` (reserved for
direct CLI registration — not yet emitted). `account` is the connecting
account/workspace login.",
"type": "object",
"required": [
"account",
"provider"
],
"properties": {
"account": {
"description": "The account/workspace login the repo was registered
under.",
"type": "string"
},
"provider": {
"description": "The registration channel: `github`, `bitbucket`, or
`cli`.",
"type": "string"
}
}
}Fields§
§account: StringThe account/workspace login the repo was registered under.
provider: StringThe registration channel: github, bitbucket, or cli.
Trait Implementations§
Source§impl Clone for RepoRegistration
impl Clone for RepoRegistration
Source§fn clone(&self) -> RepoRegistration
fn clone(&self) -> RepoRegistration
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 RepoRegistration
impl Debug for RepoRegistration
Source§impl<'de> Deserialize<'de> for RepoRegistration
impl<'de> Deserialize<'de> for RepoRegistration
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 Freeze for RepoRegistration
impl RefUnwindSafe for RepoRegistration
impl Send for RepoRegistration
impl Sync for RepoRegistration
impl Unpin for RepoRegistration
impl UnsafeUnpin for RepoRegistration
impl UnwindSafe for RepoRegistration
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