pub struct ImportContext<'a> {
pub resource_id: &'a str,
pub platform: Platform,
pub region: &'a str,
pub stack_settings: &'a StackSettings,
pub management_config: Option<&'a ManagementConfig>,
pub resource: &'a ResourceEntry,
}Expand description
Context passed to manager- or agent-side importers.
Fields§
§resource_id: &'a strResource id currently being imported.
platform: PlatformTarget platform for this imported resource.
region: &'a strRegion or location reported by the setup artifact.
stack_settings: &'a StackSettingsStack settings supplied by the setup artifact.
management_config: Option<&'a ManagementConfig>Platform-derived management configuration, when this setup created a cross-account/cross-tenant management identity.
resource: &'a ResourceEntryOriginal resource entry from the active stack.
Trait Implementations§
Source§impl<'a> Clone for ImportContext<'a>
impl<'a> Clone for ImportContext<'a>
Source§fn clone(&self) -> ImportContext<'a>
fn clone(&self) -> ImportContext<'a>
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<'a> Debug for ImportContext<'a>
impl<'a> Debug for ImportContext<'a>
impl<'a> Copy for ImportContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImportContext<'a>
impl<'a> !RefUnwindSafe for ImportContext<'a>
impl<'a> Send for ImportContext<'a>
impl<'a> Sync for ImportContext<'a>
impl<'a> Unpin for ImportContext<'a>
impl<'a> UnsafeUnpin for ImportContext<'a>
impl<'a> !UnwindSafe for ImportContext<'a>
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