pub struct CreateOAuthClient<'a> {
pub client_name: CowStr<'a>,
pub client_uri: Option<Uri<'a>>,
pub grant_types: Option<Vec<CowStr<'a>>>,
pub logo_uri: Option<Uri<'a>>,
pub policy_uri: Option<Uri<'a>>,
pub redirect_uris: Vec<Uri<'a>>,
pub response_types: Option<Vec<CowStr<'a>>>,
pub scope: Option<CowStr<'a>>,
pub slice_uri: CowStr<'a>,
pub tos_uri: Option<Uri<'a>>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Fields§
§client_name: CowStr<'a>Human-readable name of the OAuth client
client_uri: Option<Uri<'a>>URI of the client application
grant_types: Option<Vec<CowStr<'a>>>OAuth grant types
logo_uri: Option<Uri<'a>>URI of the client logo
policy_uri: Option<Uri<'a>>URI of the privacy policy
redirect_uris: Vec<Uri<'a>>Allowed redirect URIs for OAuth flow (must use HTTP or HTTPS)
response_types: Option<Vec<CowStr<'a>>>OAuth response types
scope: Option<CowStr<'a>>OAuth scope
slice_uri: CowStr<'a>AT-URI of the slice to register the OAuth client for
tos_uri: Option<Uri<'a>>URI of the terms of service
extra_data: BTreeMap<SmolStr, Data<'a>>Implementations§
Source§impl<'a> CreateOAuthClient<'a>
impl<'a> CreateOAuthClient<'a>
Sourcepub fn new() -> CreateOAuthClientBuilder<'a>
pub fn new() -> CreateOAuthClientBuilder<'a>
Create an instance of CreateOAuthClient using the builder syntax
Trait Implementations§
Source§impl<'a> Clone for CreateOAuthClient<'a>
impl<'a> Clone for CreateOAuthClient<'a>
Source§fn clone(&self) -> CreateOAuthClient<'a>
fn clone(&self) -> CreateOAuthClient<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CreateOAuthClient<'a>
impl<'a> Debug for CreateOAuthClient<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for CreateOAuthClient<'a>
impl<'de: 'a, 'a> Deserialize<'de> for CreateOAuthClient<'a>
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<'a> IntoStatic for CreateOAuthClient<'a>
impl<'a> IntoStatic for CreateOAuthClient<'a>
Source§type Output = CreateOAuthClient<'static>
type Output = CreateOAuthClient<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'a> PartialEq for CreateOAuthClient<'a>
impl<'a> PartialEq for CreateOAuthClient<'a>
Source§impl<'a> Serialize for CreateOAuthClient<'a>
impl<'a> Serialize for CreateOAuthClient<'a>
Source§impl<'de> XrpcRequest<'de> for CreateOAuthClient<'de>
impl<'de> XrpcRequest<'de> for CreateOAuthClient<'de>
Source§const NSID: &'static str = "network.slices.slice.createOAuthClient"
const NSID: &'static str = "network.slices.slice.createOAuthClient"
The NSID for this XRPC method
Source§const METHOD: XrpcMethod
const METHOD: XrpcMethod
XRPC method (query/GET or procedure/POST)
Source§type Response = CreateOAuthClientResponse
type Response = CreateOAuthClientResponse
Response type returned from the XRPC call (marker struct)
Source§fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
Encode the request body for procedures. Read more
Source§fn decode_body(body: &'de [u8]) -> Result<Box<Self>, DecodeError>
fn decode_body(body: &'de [u8]) -> Result<Box<Self>, DecodeError>
Decode the request body for procedures. Read more
impl<'a> Eq for CreateOAuthClient<'a>
impl<'a> StructuralPartialEq for CreateOAuthClient<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateOAuthClient<'a>
impl<'a> RefUnwindSafe for CreateOAuthClient<'a>
impl<'a> Send for CreateOAuthClient<'a>
impl<'a> Sync for CreateOAuthClient<'a>
impl<'a> Unpin for CreateOAuthClient<'a>
impl<'a> UnwindSafe for CreateOAuthClient<'a>
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,
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.