pub struct CloudWatchAccounts {
pub accounts: BTreeMap<String, CloudWatchState>,
}Fields§
§accounts: BTreeMap<String, CloudWatchState>Implementations§
Source§impl CloudWatchAccounts
impl CloudWatchAccounts
pub fn new() -> Self
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 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