pub struct AdminApiKeyOwner {
pub type: Option<AdminApiKeyOwnerType>,
pub object: Option<AdminApiKeyOwnerObject>,
pub id: Option<String>,
pub name: Option<String>,
pub created_at: Option<u64>,
pub role: Option<AdminApiKeyOwnerRole>,
}
Fields§
§type: Option<AdminApiKeyOwnerType>
Always user
object: Option<AdminApiKeyOwnerObject>
The object type, which is always organization.user
id: Option<String>
The identifier, which can be referenced in API endpoints
name: Option<String>
The name of the user
created_at: Option<u64>
The Unix timestamp (in seconds) of when the user was created
role: Option<AdminApiKeyOwnerRole>
Always owner
Implementations§
Source§impl AdminApiKeyOwner
impl AdminApiKeyOwner
Sourcepub fn builder() -> AdminApiKeyOwnerBuilder<((), (), (), (), (), ())>
pub fn builder() -> AdminApiKeyOwnerBuilder<((), (), (), (), (), ())>
Create a builder for building AdminApiKeyOwner
.
On the builder, call .r#type(...)
(optional), .object(...)
(optional), .id(...)
(optional), .name(...)
(optional), .created_at(...)
(optional), .role(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of AdminApiKeyOwner
.
Trait Implementations§
Source§impl Clone for AdminApiKeyOwner
impl Clone for AdminApiKeyOwner
Source§fn clone(&self) -> AdminApiKeyOwner
fn clone(&self) -> AdminApiKeyOwner
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 AdminApiKeyOwner
impl Debug for AdminApiKeyOwner
Source§impl Default for AdminApiKeyOwner
impl Default for AdminApiKeyOwner
Source§fn default() -> AdminApiKeyOwner
fn default() -> AdminApiKeyOwner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdminApiKeyOwner
impl<'de> Deserialize<'de> for AdminApiKeyOwner
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 AdminApiKeyOwner
impl PartialEq for AdminApiKeyOwner
Source§impl Serialize for AdminApiKeyOwner
impl Serialize for AdminApiKeyOwner
impl StructuralPartialEq for AdminApiKeyOwner
Auto Trait Implementations§
impl Freeze for AdminApiKeyOwner
impl RefUnwindSafe for AdminApiKeyOwner
impl Send for AdminApiKeyOwner
impl Sync for AdminApiKeyOwner
impl Unpin for AdminApiKeyOwner
impl UnwindSafe for AdminApiKeyOwner
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