#[non_exhaustive]pub struct CreateConnectorRequest {
pub parent: String,
pub connector_id: String,
pub connector: Option<Connector>,
/* private fields */
}Expand description
Request for CreateConnector.
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 Connect cluster in which to create the connector.
Structured like
projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}.
connector_id: StringRequired. The ID to use for the connector, which will become the final
component of the connector’s name. The ID must be 1-63 characters long, and
match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? to comply with
RFC 1035.
This value is structured like: my-connector-id.
connector: Option<Connector>Required. The connector to create.
Implementations§
Source§impl CreateConnectorRequest
impl CreateConnectorRequest
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_connector_id<T: Into<String>>(self, v: T) -> Self
pub fn set_connector_id<T: Into<String>>(self, v: T) -> Self
Sets the value of connector_id.
Sourcepub fn set_connector<T>(self, v: T) -> Self
pub fn set_connector<T>(self, v: T) -> Self
Sets the value of connector.
Trait Implementations§
Source§impl Clone for CreateConnectorRequest
impl Clone for CreateConnectorRequest
Source§fn clone(&self) -> CreateConnectorRequest
fn clone(&self) -> CreateConnectorRequest
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 CreateConnectorRequest
impl Debug for CreateConnectorRequest
Source§impl Default for CreateConnectorRequest
impl Default for CreateConnectorRequest
Source§fn default() -> CreateConnectorRequest
fn default() -> CreateConnectorRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateConnectorRequest
impl Message for CreateConnectorRequest
Source§impl PartialEq for CreateConnectorRequest
impl PartialEq for CreateConnectorRequest
impl StructuralPartialEq for CreateConnectorRequest
Auto Trait Implementations§
impl Freeze for CreateConnectorRequest
impl RefUnwindSafe for CreateConnectorRequest
impl Send for CreateConnectorRequest
impl Sync for CreateConnectorRequest
impl Unpin for CreateConnectorRequest
impl UnwindSafe for CreateConnectorRequest
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