#[non_exhaustive]pub struct SourceRole {
pub target_id: Option<InstanceReference>,
/* private fields */
}Expand description
The source 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.target_id: Option<InstanceReference>Output only. The target instance paired with this source instance in a blue-green deployment.
Implementations§
Source§impl SourceRole
impl SourceRole
Sourcepub fn set_target_id<T>(self, v: T) -> Selfwhere
T: Into<InstanceReference>,
pub fn set_target_id<T>(self, v: T) -> Selfwhere
T: Into<InstanceReference>,
Sourcepub fn set_or_clear_target_id<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceReference>,
pub fn set_or_clear_target_id<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceReference>,
Trait Implementations§
Source§impl Clone for SourceRole
impl Clone for SourceRole
Source§impl Debug for SourceRole
impl Debug for SourceRole
Source§impl Default for SourceRole
impl Default for SourceRole
Source§impl PartialEq for SourceRole
impl PartialEq for SourceRole
impl StructuralPartialEq for SourceRole
Auto Trait Implementations§
impl Freeze for SourceRole
impl RefUnwindSafe for SourceRole
impl Send for SourceRole
impl Sync for SourceRole
impl Unpin for SourceRole
impl UnsafeUnpin for SourceRole
impl UnwindSafe for SourceRole
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