pub struct DsqlState {
pub account_id: String,
pub region: String,
pub clusters: BTreeMap<String, Cluster>,
}Expand description
One account’s DSQL clusters, keyed by cluster identifier.
Fields§
§account_id: String§region: String§clusters: BTreeMap<String, Cluster>Implementations§
Trait Implementations§
Source§impl AccountState for DsqlState
impl AccountState for DsqlState
Source§fn new_for_account(account_id: &str, region: &str, _endpoint: &str) -> Self
fn new_for_account(account_id: &str, region: &str, _endpoint: &str) -> Self
Create a fresh, empty state for the given account.
Source§fn inherit_from(&mut self, _sibling: &Self)
fn inherit_from(&mut self, _sibling: &Self)
Called after a new account state is created via
MultiAccountState::get_or_create,
with a reference to an existing sibling state. Services can override
this to propagate shared resources (e.g. body caches) to the new state.Source§impl<'de> Deserialize<'de> for DsqlState
impl<'de> Deserialize<'de> for DsqlState
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 DsqlState
impl RefUnwindSafe for DsqlState
impl Send for DsqlState
impl Sync for DsqlState
impl Unpin for DsqlState
impl UnsafeUnpin for DsqlState
impl UnwindSafe for DsqlState
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