pub struct ResourceGroupsState {
pub groups: BTreeMap<String, ResourceGroup>,
pub tag_sync_tasks: BTreeMap<String, TagSyncTask>,
pub account_settings: AccountSettings,
}Fields§
§groups: BTreeMap<String, ResourceGroup>Groups keyed by name.
tag_sync_tasks: BTreeMap<String, TagSyncTask>Tag-sync tasks keyed by task ARN.
account_settings: AccountSettingsImplementations§
Source§impl ResourceGroupsState
impl ResourceGroupsState
Sourcepub fn resolve_name<'a>(&'a self, name_or_arn: &'a str) -> Option<&'a str>
pub fn resolve_name<'a>(&'a self, name_or_arn: &'a str) -> Option<&'a str>
Resolve a group by name or ARN (the GroupStringV2 member accepts both).
Trait Implementations§
Source§impl AccountState for ResourceGroupsState
impl AccountState for ResourceGroupsState
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 Clone for ResourceGroupsState
impl Clone for ResourceGroupsState
Source§fn clone(&self) -> ResourceGroupsState
fn clone(&self) -> ResourceGroupsState
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 ResourceGroupsState
impl Debug for ResourceGroupsState
Source§impl Default for ResourceGroupsState
impl Default for ResourceGroupsState
Source§fn default() -> ResourceGroupsState
fn default() -> ResourceGroupsState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceGroupsState
impl<'de> Deserialize<'de> for ResourceGroupsState
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 ResourceGroupsState
impl RefUnwindSafe for ResourceGroupsState
impl Send for ResourceGroupsState
impl Sync for ResourceGroupsState
impl Unpin for ResourceGroupsState
impl UnsafeUnpin for ResourceGroupsState
impl UnwindSafe for ResourceGroupsState
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