pub struct ConnectBitbucketRequest {
pub code: String,
pub state: String,
}Expand description
OAuth callback payload from the SPA.
JSON schema
{
"title": "ConnectBitbucketRequest",
"description": "OAuth callback payload from the SPA.",
"examples": [
{
"code": "abc123",
"state": "SFMyNTY..."
}
],
"type": "object",
"required": [
"code",
"state"
],
"properties": {
"code": {
"description": "Authorization code from Bitbucket.",
"type": "string"
},
"state": {
"description": "The signed CSRF state nonce echoed back by
Bitbucket on the callback. Issued by the `oauth-url` endpoint and bound
to the authenticated user.",
"type": "string"
}
}
}Fields§
§code: StringAuthorization code from Bitbucket.
state: StringThe signed CSRF state nonce echoed back by Bitbucket on the
callback. Issued by the oauth-url endpoint and bound to the
authenticated user.
Trait Implementations§
Source§impl Clone for ConnectBitbucketRequest
impl Clone for ConnectBitbucketRequest
Source§fn clone(&self) -> ConnectBitbucketRequest
fn clone(&self) -> ConnectBitbucketRequest
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 ConnectBitbucketRequest
impl Debug for ConnectBitbucketRequest
Source§impl<'de> Deserialize<'de> for ConnectBitbucketRequest
impl<'de> Deserialize<'de> for ConnectBitbucketRequest
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 ConnectBitbucketRequest
impl RefUnwindSafe for ConnectBitbucketRequest
impl Send for ConnectBitbucketRequest
impl Sync for ConnectBitbucketRequest
impl Unpin for ConnectBitbucketRequest
impl UnsafeUnpin for ConnectBitbucketRequest
impl UnwindSafe for ConnectBitbucketRequest
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