#[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 vpc_peering_config: Option<VpcPeeringConfig>,
}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
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.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.
vpc_peering_config: Option<VpcPeeringConfig>VPC Peering Config.
Implementations§
Source§impl PrivateConnection
impl PrivateConnection
pub fn new() -> Self
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
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.
Sourcepub fn set_vpc_peering_config<T: Into<Option<VpcPeeringConfig>>>(
self,
v: T,
) -> Self
pub fn set_vpc_peering_config<T: Into<Option<VpcPeeringConfig>>>( self, v: T, ) -> Self
Sets the value of vpc_peering_config.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
Source§impl Clone for PrivateConnection
impl Clone for PrivateConnection
Source§fn clone(&self) -> PrivateConnection
fn clone(&self) -> PrivateConnection
Returns a copy 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 PrivateConnection
impl Debug for PrivateConnection
Source§impl Default for PrivateConnection
impl Default for PrivateConnection
Source§fn default() -> PrivateConnection
fn default() -> PrivateConnection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrivateConnectionwhere
PrivateConnection: Default,
impl<'de> Deserialize<'de> for PrivateConnectionwhere
PrivateConnection: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for PrivateConnection
impl Message for PrivateConnection
Source§impl PartialEq for PrivateConnection
impl PartialEq for PrivateConnection
Source§impl Serialize for PrivateConnection
impl Serialize 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 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
Mutably borrows from an owned value. Read more