pub struct OAuthApp {
pub id: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub redirect_uris: Option<Vec<String>>,
pub scopes: Option<Vec<String>>,
pub allowed_node_attributes: Option<Vec<String>>,
pub client_secret: Option<Secret>,
pub created: Option<String>,
pub updated: Option<String>,
pub unknown: Unknown,
}Expand description
An OAuth app, which is a third party a user can grant access to.
Not to be confused with an OAuth client, which is a credential this
server can hold; see crate::credentials::Credentials.
Fields§
§id: Option<String>§name: Option<String>3 to 50 characters of [A-Za-z0-9._-].
description: Option<String>At most 300 characters.
redirect_uris: Option<Vec<String>>Where the authorization code flow may return to. At least one is
required and each must be https.
scopes: Option<Vec<String>>Must be non-empty.
allowed_node_attributes: Option<Vec<String>>The device attributes this app may set.
client_secret: Option<Secret>Sent when the app is created and never again.
created: Option<String>§updated: Option<String>§unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OAuthApp
impl<'de> Deserialize<'de> for OAuthApp
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 StructuralPartialEq for OAuthApp
Auto Trait Implementations§
impl Freeze for OAuthApp
impl RefUnwindSafe for OAuthApp
impl Send for OAuthApp
impl Sync for OAuthApp
impl Unpin for OAuthApp
impl UnsafeUnpin for OAuthApp
impl UnwindSafe for OAuthApp
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