#[non_exhaustive]pub struct CreateConnectionRequest {
pub parent: String,
pub connection: Option<Connection>,
pub connection_id: String,
/* private fields */
}Expand description
Message for creating a Connection
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. Project and location where the connection will be created.
Format: projects/*/locations/*.
connection: Option<Connection>Required. The Connection to create.
connection_id: StringRequired. The ID to use for the Connection, which will become the final component of the Connection’s resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&’()*+,;=@.
Implementations§
Source§impl CreateConnectionRequest
impl CreateConnectionRequest
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_connection<T>(self, v: T) -> Selfwhere
T: Into<Connection>,
pub fn set_connection<T>(self, v: T) -> Selfwhere
T: Into<Connection>,
Sets the value of connection.
Sourcepub fn set_or_clear_connection<T>(self, v: Option<T>) -> Selfwhere
T: Into<Connection>,
pub fn set_or_clear_connection<T>(self, v: Option<T>) -> Selfwhere
T: Into<Connection>,
Sets or clears the value of connection.
Sourcepub fn set_connection_id<T: Into<String>>(self, v: T) -> Self
pub fn set_connection_id<T: Into<String>>(self, v: T) -> Self
Sets the value of connection_id.
Trait Implementations§
Source§impl Clone for CreateConnectionRequest
impl Clone for CreateConnectionRequest
Source§fn clone(&self) -> CreateConnectionRequest
fn clone(&self) -> CreateConnectionRequest
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 CreateConnectionRequest
impl Debug for CreateConnectionRequest
Source§impl Default for CreateConnectionRequest
impl Default for CreateConnectionRequest
Source§fn default() -> CreateConnectionRequest
fn default() -> CreateConnectionRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateConnectionRequest
impl Message for CreateConnectionRequest
Source§impl PartialEq for CreateConnectionRequest
impl PartialEq for CreateConnectionRequest
impl StructuralPartialEq for CreateConnectionRequest
Auto Trait Implementations§
impl Freeze for CreateConnectionRequest
impl RefUnwindSafe for CreateConnectionRequest
impl Send for CreateConnectionRequest
impl Sync for CreateConnectionRequest
impl Unpin for CreateConnectionRequest
impl UnwindSafe for CreateConnectionRequest
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