#[non_exhaustive]pub struct ChannelConnection {
pub name: String,
pub uid: String,
pub channel: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub activation_token: String,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
A representation of the ChannelConnection resource. A ChannelConnection is a resource which event providers create during the activation process to establish a connection between the provider and the subscriber channel.
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: StringRequired. The name of the connection.
uid: StringOutput only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
channel: StringRequired. The name of the connected subscriber Channel.
This is a weak reference to avoid cross project and cross accounts
references. This must be in
projects/{project}/location/{location}/channels/{channel_id} format.
create_time: Option<Timestamp>Output only. The creation time.
update_time: Option<Timestamp>Output only. The last-modified time.
activation_token: StringInput only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.
labels: HashMap<String, String>Optional. Resource labels.
Implementations§
Source§impl ChannelConnection
impl ChannelConnection
pub fn new() -> Self
Sourcepub fn set_channel<T: Into<String>>(self, v: T) -> Self
pub fn set_channel<T: Into<String>>(self, v: T) -> Self
Sets the value of channel.
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.
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.
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.
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.
Sourcepub fn set_activation_token<T: Into<String>>(self, v: T) -> Self
pub fn set_activation_token<T: Into<String>>(self, v: T) -> Self
Sets the value of activation_token.
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 ChannelConnection
impl Clone for ChannelConnection
Source§fn clone(&self) -> ChannelConnection
fn clone(&self) -> ChannelConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more