#[non_exhaustive]pub struct PscAttachmentDetail {
pub service_attachment: String,
pub connection_type: ConnectionType,
/* private fields */
}Expand description
Configuration of a service attachment of the cluster, for creating PSC connections.
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.service_attachment: StringOutput only. Service attachment URI which your self-created PscConnection should use as target.
connection_type: ConnectionTypeOutput only. Type of Psc endpoint.
Implementations§
Source§impl PscAttachmentDetail
impl PscAttachmentDetail
pub fn new() -> Self
Sourcepub fn set_service_attachment<T: Into<String>>(self, v: T) -> Self
pub fn set_service_attachment<T: Into<String>>(self, v: T) -> Self
Sets the value of service_attachment.
§Example
ⓘ
let x = PscAttachmentDetail::new().set_service_attachment("example");Sourcepub fn set_connection_type<T: Into<ConnectionType>>(self, v: T) -> Self
pub fn set_connection_type<T: Into<ConnectionType>>(self, v: T) -> Self
Sets the value of connection_type.
§Example
ⓘ
use google_cloud_memorystore_v1::model::ConnectionType;
let x0 = PscAttachmentDetail::new().set_connection_type(ConnectionType::Discovery);
let x1 = PscAttachmentDetail::new().set_connection_type(ConnectionType::Primary);
let x2 = PscAttachmentDetail::new().set_connection_type(ConnectionType::Reader);Trait Implementations§
Source§impl Clone for PscAttachmentDetail
impl Clone for PscAttachmentDetail
Source§fn clone(&self) -> PscAttachmentDetail
fn clone(&self) -> PscAttachmentDetail
Returns a duplicate of the value. Read more
1.0.0 · 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 PscAttachmentDetail
impl Debug for PscAttachmentDetail
Source§impl Default for PscAttachmentDetail
impl Default for PscAttachmentDetail
Source§fn default() -> PscAttachmentDetail
fn default() -> PscAttachmentDetail
Returns the “default value” for a type. Read more
Source§impl Message for PscAttachmentDetail
impl Message for PscAttachmentDetail
Source§impl PartialEq for PscAttachmentDetail
impl PartialEq for PscAttachmentDetail
impl StructuralPartialEq for PscAttachmentDetail
Auto Trait Implementations§
impl Freeze for PscAttachmentDetail
impl RefUnwindSafe for PscAttachmentDetail
impl Send for PscAttachmentDetail
impl Sync for PscAttachmentDetail
impl Unpin for PscAttachmentDetail
impl UnwindSafe for PscAttachmentDetail
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