Struct dbcrossbarlib::DestinationArguments
source · pub struct DestinationArguments<ArgumentState> { /* private fields */ }
Expand description
Data destination arguments.
Implementations§
source§impl DestinationArguments<Unverified>
impl DestinationArguments<Unverified>
sourcepub fn new(
driver_args: DriverArguments,
format: Option<DataFormat>,
if_exists: IfExists
) -> Self
pub fn new( driver_args: DriverArguments, format: Option<DataFormat>, if_exists: IfExists ) -> Self
Construct a new DestinationArguments
.
sourcepub fn for_temporary() -> Self
pub fn for_temporary() -> Self
Construct a new DestinationArguments
with typical values for a
temporary storage location.
sourcepub fn with_format_csv(self) -> Result<Self>
pub fn with_format_csv(self) -> Result<Self>
Set the format to CSV, returning an error if it was already set. This
is used by the csv:
driver for backwards compatibility.
sourcepub fn verify(
self,
features: Features
) -> Result<DestinationArguments<Verified>>
pub fn verify( self, features: Features ) -> Result<DestinationArguments<Verified>>
Verify that this structure only contains supported arguments. This uses the type state pattern to keep track of whether our arguments have been verified to be supported.
source§impl DestinationArguments<Verified>
impl DestinationArguments<Verified>
sourcepub fn driver_args(&self) -> &DriverArguments
pub fn driver_args(&self) -> &DriverArguments
Driver-specific arguments for our data destination.
sourcepub fn format(&self) -> Option<&DataFormat>
pub fn format(&self) -> Option<&DataFormat>
The format for data associated with this locator, if applicable.
Trait Implementations§
source§impl<ArgumentState: Clone> Clone for DestinationArguments<ArgumentState>
impl<ArgumentState: Clone> Clone for DestinationArguments<ArgumentState>
source§fn clone(&self) -> DestinationArguments<ArgumentState>
fn clone(&self) -> DestinationArguments<ArgumentState>
Returns a copy 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<ArgumentState: Debug> Debug for DestinationArguments<ArgumentState>
impl<ArgumentState: Debug> Debug for DestinationArguments<ArgumentState>
source§impl<ArgumentState: Default> Default for DestinationArguments<ArgumentState>
impl<ArgumentState: Default> Default for DestinationArguments<ArgumentState>
source§fn default() -> DestinationArguments<ArgumentState>
fn default() -> DestinationArguments<ArgumentState>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<ArgumentState> RefUnwindSafe for DestinationArguments<ArgumentState>where ArgumentState: RefUnwindSafe,
impl<ArgumentState> Send for DestinationArguments<ArgumentState>where ArgumentState: Send,
impl<ArgumentState> Sync for DestinationArguments<ArgumentState>where ArgumentState: Sync,
impl<ArgumentState> Unpin for DestinationArguments<ArgumentState>where ArgumentState: Unpin,
impl<ArgumentState> UnwindSafe for DestinationArguments<ArgumentState>where ArgumentState: UnwindSafe,
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