pub struct CredentialResponseWire {
pub credential: Option<String>,
pub error: Option<ErrorCode>,
pub error_message: Option<String>,
pub one_time_secret: OneTimeSecret,
pub account: Option<String>,
pub metadata: Option<String>,
pub scopes: Option<BTreeSet<String>>,
pub permissions: Option<BTreeSet<String>>,
pub expires_at: Option<TimestampMs>,
}Expand description
The response JSON: one flat object whose success fields are set on a
grant and whose error fields are set on an error. Unrecognized fields
are ignored.
Fields§
§credential: Option<String>§error: Option<ErrorCode>§error_message: Option<String>§one_time_secret: OneTimeSecret§account: Option<String>§metadata: Option<String>§scopes: Option<BTreeSet<String>>§permissions: Option<BTreeSet<String>>§expires_at: Option<TimestampMs>Trait Implementations§
Source§impl Clone for CredentialResponseWire
impl Clone for CredentialResponseWire
Source§impl Debug for CredentialResponseWire
impl Debug for CredentialResponseWire
Source§impl<'de> Deserialize<'de> for CredentialResponseWire
impl<'de> Deserialize<'de> for CredentialResponseWire
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
impl Eq for CredentialResponseWire
Source§impl From<CredentialResponse> for CredentialResponseWire
impl From<CredentialResponse> for CredentialResponseWire
Source§fn from(response: CredentialResponse) -> Self
fn from(response: CredentialResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CredentialResponseWire
impl PartialEq for CredentialResponseWire
Source§impl Serialize for CredentialResponseWire
impl Serialize for CredentialResponseWire
impl StructuralPartialEq for CredentialResponseWire
Auto Trait Implementations§
impl Freeze for CredentialResponseWire
impl RefUnwindSafe for CredentialResponseWire
impl Send for CredentialResponseWire
impl Sync for CredentialResponseWire
impl Unpin for CredentialResponseWire
impl UnsafeUnpin for CredentialResponseWire
impl UnwindSafe for CredentialResponseWire
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.