#[non_exhaustive]pub struct CreateChannelConnectionRequest {
pub parent: String,
pub channel_connection: Option<ChannelConnection>,
pub channel_connection_id: String,
/* private fields */
}Expand description
The request message for the CreateChannelConnection method.
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.parent: StringRequired. The parent collection in which to add this channel connection.
channel_connection: Option<ChannelConnection>Required. Channel connection to create.
channel_connection_id: StringRequired. The user-provided ID to be assigned to the channel connection.
Implementations§
Source§impl CreateChannelConnectionRequest
impl CreateChannelConnectionRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_channel_connection<T>(self, v: T) -> Selfwhere
T: Into<ChannelConnection>,
pub fn set_channel_connection<T>(self, v: T) -> Selfwhere
T: Into<ChannelConnection>,
Sets the value of channel_connection.
Sourcepub fn set_or_clear_channel_connection<T>(self, v: Option<T>) -> Selfwhere
T: Into<ChannelConnection>,
pub fn set_or_clear_channel_connection<T>(self, v: Option<T>) -> Selfwhere
T: Into<ChannelConnection>,
Sets or clears the value of channel_connection.
Sourcepub fn set_channel_connection_id<T: Into<String>>(self, v: T) -> Self
pub fn set_channel_connection_id<T: Into<String>>(self, v: T) -> Self
Sets the value of channel_connection_id.
Trait Implementations§
Source§impl Clone for CreateChannelConnectionRequest
impl Clone for CreateChannelConnectionRequest
Source§fn clone(&self) -> CreateChannelConnectionRequest
fn clone(&self) -> CreateChannelConnectionRequest
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 Default for CreateChannelConnectionRequest
impl Default for CreateChannelConnectionRequest
Source§fn default() -> CreateChannelConnectionRequest
fn default() -> CreateChannelConnectionRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateChannelConnectionRequest
impl PartialEq for CreateChannelConnectionRequest
Source§fn eq(&self, other: &CreateChannelConnectionRequest) -> bool
fn eq(&self, other: &CreateChannelConnectionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateChannelConnectionRequest
Auto Trait Implementations§
impl Freeze for CreateChannelConnectionRequest
impl RefUnwindSafe for CreateChannelConnectionRequest
impl Send for CreateChannelConnectionRequest
impl Sync for CreateChannelConnectionRequest
impl Unpin for CreateChannelConnectionRequest
impl UnwindSafe for CreateChannelConnectionRequest
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