pub struct ProjectServiceAccount {
pub id: String,
pub name: String,
pub role: ProjectServiceAccountRole,
pub created_at: u64,
}
Expand description
Represents an individual service account in a project.
Fields§
§id: String
The identifier, which can be referenced in API endpoints
name: String
The name of the service account
role: ProjectServiceAccountRole
owner
or member
created_at: u64
The Unix timestamp (in seconds) of when the service account was created
Implementations§
Source§impl ProjectServiceAccount
impl ProjectServiceAccount
Sourcepub fn builder() -> ProjectServiceAccountBuilder<((), (), (), ())>
pub fn builder() -> ProjectServiceAccountBuilder<((), (), (), ())>
Create a builder for building ProjectServiceAccount
.
On the builder, call .id(...)
, .name(...)
, .role(...)
, .created_at(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ProjectServiceAccount
.
Trait Implementations§
Source§impl Clone for ProjectServiceAccount
impl Clone for ProjectServiceAccount
Source§fn clone(&self) -> ProjectServiceAccount
fn clone(&self) -> ProjectServiceAccount
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 ProjectServiceAccount
impl Debug for ProjectServiceAccount
Source§impl<'de> Deserialize<'de> for ProjectServiceAccount
impl<'de> Deserialize<'de> for ProjectServiceAccount
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 ProjectServiceAccount
impl PartialEq for ProjectServiceAccount
Source§impl Serialize for ProjectServiceAccount
impl Serialize for ProjectServiceAccount
impl StructuralPartialEq for ProjectServiceAccount
Auto Trait Implementations§
impl Freeze for ProjectServiceAccount
impl RefUnwindSafe for ProjectServiceAccount
impl Send for ProjectServiceAccount
impl Sync for ProjectServiceAccount
impl Unpin for ProjectServiceAccount
impl UnwindSafe for ProjectServiceAccount
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