pub struct CreateAuthorizationRequest {
pub description: Option<String>,
pub org_id: String,
pub permissions: Vec<Permission>,
pub status: Option<Status>,
pub user_id: Option<String>,
}Expand description
Request for creating an authorization.
Fields§
§description: Option<String>A description of the token.
org_id: StringAn organization ID. Specifies the organization that owns the authorization.
permissions: Vec<Permission>A list of permissions for an authorization (at least 1 required).
status: Option<Status>Status of the token after creation.
user_id: Option<String>A user ID. Specifies the user that the authorization is scoped to.
Trait Implementations§
Source§impl Clone for CreateAuthorizationRequest
impl Clone for CreateAuthorizationRequest
Source§fn clone(&self) -> CreateAuthorizationRequest
fn clone(&self) -> CreateAuthorizationRequest
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 Debug for CreateAuthorizationRequest
impl Debug for CreateAuthorizationRequest
Source§impl Default for CreateAuthorizationRequest
impl Default for CreateAuthorizationRequest
Source§fn default() -> CreateAuthorizationRequest
fn default() -> CreateAuthorizationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateAuthorizationRequest
impl<'de> Deserialize<'de> for CreateAuthorizationRequest
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 CreateAuthorizationRequest
Auto Trait Implementations§
impl Freeze for CreateAuthorizationRequest
impl RefUnwindSafe for CreateAuthorizationRequest
impl Send for CreateAuthorizationRequest
impl Sync for CreateAuthorizationRequest
impl Unpin for CreateAuthorizationRequest
impl UnwindSafe for CreateAuthorizationRequest
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