#[non_exhaustive]pub struct SelfManagedSource {
pub ip_address: String,
pub port: i32,
pub network_attachment: String,
/* private fields */
}Expand description
Details of the self-managed source instance.
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.ip_address: StringRequired. The IP address of the source instance. This IP address should be a stable IP address that can be accessed by the Memorystore instance throughout the migration process.
port: i32Required. The port of the source instance. This port should be a stable port that can be accessed by the Memorystore instance throughout the migration process.
network_attachment: StringRequired. The resource name of the Private Service Connect Network Attachment used to establish connectivity to the source instance. This network attachment has the following requirements:
- It must be in the same project as the Memorystore instance.
- It must be in the same region as the Memorystore instance.
- The subnet attached to the network attachment must be in the same VPC network as the source instance nodes.
Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}
Implementations§
Source§impl SelfManagedSource
impl SelfManagedSource
Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_network_attachment<T: Into<String>>(self, v: T) -> Self
pub fn set_network_attachment<T: Into<String>>(self, v: T) -> Self
Sets the value of network_attachment.
§Example
ⓘ
let x = SelfManagedSource::new().set_network_attachment("example");Trait Implementations§
Source§impl Clone for SelfManagedSource
impl Clone for SelfManagedSource
Source§fn clone(&self) -> SelfManagedSource
fn clone(&self) -> SelfManagedSource
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 SelfManagedSource
impl Debug for SelfManagedSource
Source§impl Default for SelfManagedSource
impl Default for SelfManagedSource
Source§fn default() -> SelfManagedSource
fn default() -> SelfManagedSource
Returns the “default value” for a type. Read more
Source§impl Message for SelfManagedSource
impl Message for SelfManagedSource
Source§impl PartialEq for SelfManagedSource
impl PartialEq for SelfManagedSource
impl StructuralPartialEq for SelfManagedSource
Auto Trait Implementations§
impl Freeze for SelfManagedSource
impl RefUnwindSafe for SelfManagedSource
impl Send for SelfManagedSource
impl Sync for SelfManagedSource
impl Unpin for SelfManagedSource
impl UnsafeUnpin for SelfManagedSource
impl UnwindSafe for SelfManagedSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request