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: StringThe Id of the account
objscale: StringThe name/id of the object scale that the account is associated with
create_date: StringThe date and time, in the format of YYYY-MM-DDTHH:mm:ssZ, when the account created
encryption_enabled: boolIndicate if encryption is enabled for the account
account_disabled: boolaccount disabled
alias: StringAn Alias for an account
description: StringThe description for an account
protection_enabled: boolprotection enabled
tso_id: StringTso 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