pub struct Account {
pub account_id: String,
pub objscale: String,
pub create_date: String,
pub encryption_enabled: bool,
pub account_disabled: bool,
pub alias: String,
pub description: String,
pub protection_enabled: bool,
pub tso_id: String,
pub tags: Vec<Tag>,
}
Expand description
An ObjectScale Account is a logical construct that corresponds to a customer business unit, tenant, project, and so on.
You can build an Account with AccountBuilder and pass to create_account
method.
get_account
would fetch the existing Account from ObjectScale server.
§Examples
use objectscale_client::iam::{AccountBuilder, Tag};
let account = AccountBuilder::default()
.alias("test")
.encryption_enabled(true)
.description("test")
.tags(vec![Tag {
key: "key1".to_string(),
value: "value1".to_string(),
}])
.build()
.expect("account");
Fields§
§account_id: String
The Id of the account
objscale: String
The name/id of the object scale that the account is associated with
create_date: String
The date and time, in the format of YYYY-MM-DDTHH:mm:ssZ, when the account created
encryption_enabled: bool
Indicate if encryption is enabled for the account
account_disabled: bool
account disabled
alias: String
An Alias for an account
description: String
The description for an account
protection_enabled: bool
protection enabled
tso_id: String
Tso id
Labels
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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