pub struct CreateOAuthAppRequest {
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 unknown: Unknown,
}Expand description
What creating an OAuth app sends.
The same five fields an update sends, and the description declares them through the same shared schemas, so one struct covers both.
Fields§
§name: Option<String>3 to 50 characters of [A-Za-z0-9._-]. Required.
description: Option<String>At most 300 characters.
redirect_uris: Option<Vec<String>>Required, at least one, each https — or http on localhost.
scopes: Option<Vec<String>>Required and non-empty, as auth_keys:create and the like.
allowed_node_attributes: Option<Vec<String>>Device attributes this app may set, each beginning custom:.
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 Clone for CreateOAuthAppRequest
impl Clone for CreateOAuthAppRequest
Source§impl Debug for CreateOAuthAppRequest
impl Debug for CreateOAuthAppRequest
Source§impl<'de> Deserialize<'de> for CreateOAuthAppRequest
impl<'de> Deserialize<'de> for CreateOAuthAppRequest
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
Source§impl PartialEq for CreateOAuthAppRequest
impl PartialEq for CreateOAuthAppRequest
Source§impl Serialize for CreateOAuthAppRequest
impl Serialize for CreateOAuthAppRequest
impl StructuralPartialEq for CreateOAuthAppRequest
Auto Trait Implementations§
impl Freeze for CreateOAuthAppRequest
impl RefUnwindSafe for CreateOAuthAppRequest
impl Send for CreateOAuthAppRequest
impl Sync for CreateOAuthAppRequest
impl Unpin for CreateOAuthAppRequest
impl UnsafeUnpin for CreateOAuthAppRequest
impl UnwindSafe for CreateOAuthAppRequest
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