#[non_exhaustive]pub struct DestinationConfig {
pub key: String,
pub destinations: Vec<Destination>,
/* private fields */
}Expand description
Define the Connectors target endpoint.
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.key: StringThe key is the destination identifier that is supported by the Connector.
destinations: Vec<Destination>The destinations for the key.
Implementations§
Source§impl DestinationConfig
impl DestinationConfig
pub fn new() -> Self
Sourcepub fn set_destinations<T, V>(self, v: T) -> Self
pub fn set_destinations<T, V>(self, v: T) -> Self
Sets the value of destinations.
§Example
ⓘ
use google_cloud_connectors_v1::model::Destination;
let x = DestinationConfig::new()
.set_destinations([
Destination::default()/* use setters */,
Destination::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for DestinationConfig
impl Clone for DestinationConfig
Source§fn clone(&self) -> DestinationConfig
fn clone(&self) -> DestinationConfig
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 DestinationConfig
impl Debug for DestinationConfig
Source§impl Default for DestinationConfig
impl Default for DestinationConfig
Source§fn default() -> DestinationConfig
fn default() -> DestinationConfig
Returns the “default value” for a type. Read more
Source§impl Message for DestinationConfig
impl Message for DestinationConfig
Source§impl PartialEq for DestinationConfig
impl PartialEq for DestinationConfig
impl StructuralPartialEq for DestinationConfig
Auto Trait Implementations§
impl Freeze for DestinationConfig
impl RefUnwindSafe for DestinationConfig
impl Send for DestinationConfig
impl Sync for DestinationConfig
impl Unpin for DestinationConfig
impl UnsafeUnpin for DestinationConfig
impl UnwindSafe for DestinationConfig
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