#[non_exhaustive]pub struct SourceTargetPairedNode {
pub source: Option<NodeInfo>,
pub target: Option<NodeInfo>,
pub state: State,
pub diffs: Vec<ConfigDiff>,
/* private fields */
}Expand description
Represents a pairing of a source instance node and a target instance node.
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: Option<NodeInfo>Output only. Specifies the resource name of the source instance in this pair.
target: Option<NodeInfo>Output only. Specifies details of the corresponding target instance in this pair.
state: StateOutput only. Specifies the current state of this specific source-target pair.
diffs: Vec<ConfigDiff>Output only. Describes the list of differences for the
SourceTargetPairedNode.
Implementations§
Source§impl SourceTargetPairedNode
impl SourceTargetPairedNode
Sourcepub fn set_source<T>(self, v: T) -> Self
pub fn set_source<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_source<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_source<T>(self, v: Option<T>) -> Self
Sets or clears the value of source.
§Example
ⓘ
use google_cloud_sql_v1::model::blue_green_deployment::source_target_paired_node::NodeInfo;
let x = SourceTargetPairedNode::new().set_or_clear_source(Some(NodeInfo::default()/* use setters */));
let x = SourceTargetPairedNode::new().set_or_clear_source(None::<NodeInfo>);Sourcepub fn set_target<T>(self, v: T) -> Self
pub fn set_target<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_target<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_target<T>(self, v: Option<T>) -> Self
Sets or clears the value of target.
§Example
ⓘ
use google_cloud_sql_v1::model::blue_green_deployment::source_target_paired_node::NodeInfo;
let x = SourceTargetPairedNode::new().set_or_clear_target(Some(NodeInfo::default()/* use setters */));
let x = SourceTargetPairedNode::new().set_or_clear_target(None::<NodeInfo>);Sourcepub fn set_state<T: Into<State>>(self, v: T) -> Self
pub fn set_state<T: Into<State>>(self, v: T) -> Self
Sets the value of state.
§Example
ⓘ
use google_cloud_sql_v1::model::blue_green_deployment::source_target_paired_node::State;
let x0 = SourceTargetPairedNode::new().set_state(State::Provisioning);
let x1 = SourceTargetPairedNode::new().set_state(State::Provisioned);
let x2 = SourceTargetPairedNode::new().set_state(State::Upgrading);Trait Implementations§
Source§impl Clone for SourceTargetPairedNode
impl Clone for SourceTargetPairedNode
Source§impl Debug for SourceTargetPairedNode
impl Debug for SourceTargetPairedNode
Source§impl Default for SourceTargetPairedNode
impl Default for SourceTargetPairedNode
Source§impl Message for SourceTargetPairedNode
impl Message for SourceTargetPairedNode
Source§impl PartialEq for SourceTargetPairedNode
impl PartialEq for SourceTargetPairedNode
impl StructuralPartialEq for SourceTargetPairedNode
Auto Trait Implementations§
impl Freeze for SourceTargetPairedNode
impl RefUnwindSafe for SourceTargetPairedNode
impl Send for SourceTargetPairedNode
impl Sync for SourceTargetPairedNode
impl Unpin for SourceTargetPairedNode
impl UnsafeUnpin for SourceTargetPairedNode
impl UnwindSafe for SourceTargetPairedNode
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