pub struct CloudWatchAccounts {
pub accounts: BTreeMap<String, CloudWatchState>,
}Fields§
§accounts: BTreeMap<String, CloudWatchState>Implementations§
Source§impl CloudWatchAccounts
impl CloudWatchAccounts
pub fn new() -> Self
Sourcepub fn clone_for_snapshot(&self) -> CloudWatchAccounts
pub fn clone_for_snapshot(&self) -> CloudWatchAccounts
Deep-clone for snapshot serialization. Clone isn’t derived
because the live state is held behind a RwLock and the rest of
the crate references it by reference — this helper makes the
intent explicit at the persistence boundary.
pub fn get_or_create(&mut self, account_id: &str) -> &mut CloudWatchState
pub fn get(&self, account_id: &str) -> Option<&CloudWatchState>
Trait Implementations§
Source§impl Clone for CloudWatchAccounts
impl Clone for CloudWatchAccounts
Source§fn clone(&self) -> CloudWatchAccounts
fn clone(&self) -> CloudWatchAccounts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CloudWatchAccounts
impl Debug for CloudWatchAccounts
Source§impl Default for CloudWatchAccounts
impl Default for CloudWatchAccounts
Source§fn default() -> CloudWatchAccounts
fn default() -> CloudWatchAccounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudWatchAccounts
impl<'de> Deserialize<'de> for CloudWatchAccounts
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 CloudWatchAccounts
impl RefUnwindSafe for CloudWatchAccounts
impl Send for CloudWatchAccounts
impl Sync for CloudWatchAccounts
impl Unpin for CloudWatchAccounts
impl UnsafeUnpin for CloudWatchAccounts
impl UnwindSafe for CloudWatchAccounts
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