#[non_exhaustive]pub struct TargetRole {
pub source_id: Option<InstanceReference>,
/* private fields */
}Expand description
The target instance for the Blue-Green deployment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_id: Option<InstanceReference>Output only. The source instance paired with this target instance in a blue-green deployment.
Implementations§
Source§impl TargetRole
impl TargetRole
Sourcepub fn set_source_id<T>(self, v: T) -> Selfwhere
T: Into<InstanceReference>,
pub fn set_source_id<T>(self, v: T) -> Selfwhere
T: Into<InstanceReference>,
Sourcepub fn set_or_clear_source_id<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceReference>,
pub fn set_or_clear_source_id<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceReference>,
Trait Implementations§
Source§impl Clone for TargetRole
impl Clone for TargetRole
Source§impl Debug for TargetRole
impl Debug for TargetRole
Source§impl Default for TargetRole
impl Default for TargetRole
Source§impl PartialEq for TargetRole
impl PartialEq for TargetRole
impl StructuralPartialEq for TargetRole
Auto Trait Implementations§
impl Freeze for TargetRole
impl RefUnwindSafe for TargetRole
impl Send for TargetRole
impl Sync for TargetRole
impl Unpin for TargetRole
impl UnsafeUnpin for TargetRole
impl UnwindSafe for TargetRole
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