#[non_exhaustive]pub struct PrivateConnection {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub display_name: String,
pub state: State,
pub error: Option<Error>,
pub satisfies_pzs: Option<bool>,
pub satisfies_pzi: Option<bool>,
pub vpc_peering_config: Option<VpcPeeringConfig>,
pub psc_interface_config: Option<PscInterfaceConfig>,
/* private fields */
}Expand description
The PrivateConnection resource is used to establish private connectivity between Datastream and a customer’s network.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. Identifier. The resource’s name.
create_time: Option<Timestamp>Output only. The create time of the resource.
update_time: Option<Timestamp>Output only. The update time of the resource.
labels: HashMap<String, String>Labels.
display_name: StringRequired. Display name.
state: StateOutput only. The state of the Private Connection.
error: Option<Error>Output only. In case of error, the details of the error in a user-friendly format.
satisfies_pzs: Option<bool>Output only. Reserved for future use.
satisfies_pzi: Option<bool>Output only. Reserved for future use.
vpc_peering_config: Option<VpcPeeringConfig>VPC Peering Config.
psc_interface_config: Option<PscInterfaceConfig>PSC Interface Config.
Implementations§
Source§impl PrivateConnection
impl PrivateConnection
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = PrivateConnection::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = PrivateConnection::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = PrivateConnection::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = PrivateConnection::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = PrivateConnection::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = PrivateConnection::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
let x = PrivateConnection::new().set_display_name("example");Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Sourcepub fn set_satisfies_pzs<T>(self, v: T) -> Self
pub fn set_satisfies_pzs<T>(self, v: T) -> Self
Sets the value of satisfies_pzs.
§Example
let x = PrivateConnection::new().set_satisfies_pzs(true);Sourcepub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzs.
§Example
let x = PrivateConnection::new().set_or_clear_satisfies_pzs(Some(false));
let x = PrivateConnection::new().set_or_clear_satisfies_pzs(None::<bool>);Sourcepub fn set_satisfies_pzi<T>(self, v: T) -> Self
pub fn set_satisfies_pzi<T>(self, v: T) -> Self
Sets the value of satisfies_pzi.
§Example
let x = PrivateConnection::new().set_satisfies_pzi(true);Sourcepub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzi.
§Example
let x = PrivateConnection::new().set_or_clear_satisfies_pzi(Some(false));
let x = PrivateConnection::new().set_or_clear_satisfies_pzi(None::<bool>);Sourcepub fn set_vpc_peering_config<T>(self, v: T) -> Selfwhere
T: Into<VpcPeeringConfig>,
pub fn set_vpc_peering_config<T>(self, v: T) -> Selfwhere
T: Into<VpcPeeringConfig>,
Sets the value of vpc_peering_config.
§Example
use google_cloud_datastream_v1::model::VpcPeeringConfig;
let x = PrivateConnection::new().set_vpc_peering_config(VpcPeeringConfig::default()/* use setters */);Sourcepub fn set_or_clear_vpc_peering_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<VpcPeeringConfig>,
pub fn set_or_clear_vpc_peering_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<VpcPeeringConfig>,
Sets or clears the value of vpc_peering_config.
§Example
use google_cloud_datastream_v1::model::VpcPeeringConfig;
let x = PrivateConnection::new().set_or_clear_vpc_peering_config(Some(VpcPeeringConfig::default()/* use setters */));
let x = PrivateConnection::new().set_or_clear_vpc_peering_config(None::<VpcPeeringConfig>);Sourcepub fn set_psc_interface_config<T>(self, v: T) -> Selfwhere
T: Into<PscInterfaceConfig>,
pub fn set_psc_interface_config<T>(self, v: T) -> Selfwhere
T: Into<PscInterfaceConfig>,
Sets the value of psc_interface_config.
§Example
use google_cloud_datastream_v1::model::PscInterfaceConfig;
let x = PrivateConnection::new().set_psc_interface_config(PscInterfaceConfig::default()/* use setters */);Sourcepub fn set_or_clear_psc_interface_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PscInterfaceConfig>,
pub fn set_or_clear_psc_interface_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PscInterfaceConfig>,
Sets or clears the value of psc_interface_config.
§Example
use google_cloud_datastream_v1::model::PscInterfaceConfig;
let x = PrivateConnection::new().set_or_clear_psc_interface_config(Some(PscInterfaceConfig::default()/* use setters */));
let x = PrivateConnection::new().set_or_clear_psc_interface_config(None::<PscInterfaceConfig>);Trait Implementations§
Source§impl Clone for PrivateConnection
impl Clone for PrivateConnection
Source§fn clone(&self) -> PrivateConnection
fn clone(&self) -> PrivateConnection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PrivateConnection
impl Debug for PrivateConnection
Source§impl Default for PrivateConnection
impl Default for PrivateConnection
Source§fn default() -> PrivateConnection
fn default() -> PrivateConnection
Source§impl Message for PrivateConnection
impl Message for PrivateConnection
Source§impl PartialEq for PrivateConnection
impl PartialEq for PrivateConnection
impl StructuralPartialEq for PrivateConnection
Auto Trait Implementations§
impl Freeze for PrivateConnection
impl RefUnwindSafe for PrivateConnection
impl Send for PrivateConnection
impl Sync for PrivateConnection
impl Unpin for PrivateConnection
impl UnsafeUnpin for PrivateConnection
impl UnwindSafe for PrivateConnection
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
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>
T in a tonic::Request