Struct dbcrossbarlib::SourceArguments
source · pub struct SourceArguments<ArgumentState> { /* private fields */ }
Expand description
Data source arguments.
Implementations
sourceimpl SourceArguments<Unverified>
impl SourceArguments<Unverified>
sourcepub fn new(driver_args: DriverArguments, where_clause: Option<String>) -> Self
pub fn new(driver_args: DriverArguments, where_clause: Option<String>) -> Self
Construct a new SourceArguments
.
sourcepub fn for_temporary() -> Self
pub fn for_temporary() -> Self
Construct a new SourceArguments
with typical values for a temporary
storage location.
sourcepub fn verify(self, features: Features) -> Result<SourceArguments<Verified>>
pub fn verify(self, features: Features) -> Result<SourceArguments<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.
sourceimpl SourceArguments<Verified>
impl SourceArguments<Verified>
sourcepub fn driver_args(&self) -> &DriverArguments
pub fn driver_args(&self) -> &DriverArguments
Driver-specific arguments for our data source.
sourcepub fn where_clause(&self) -> Option<&str>
pub fn where_clause(&self) -> Option<&str>
A WHERE
clause for this query.
Trait Implementations
sourceimpl<ArgumentState: Clone> Clone for SourceArguments<ArgumentState>
impl<ArgumentState: Clone> Clone for SourceArguments<ArgumentState>
sourcefn clone(&self) -> SourceArguments<ArgumentState>
fn clone(&self) -> SourceArguments<ArgumentState>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<ArgumentState: Debug> Debug for SourceArguments<ArgumentState>
impl<ArgumentState: Debug> Debug for SourceArguments<ArgumentState>
sourceimpl<ArgumentState: Default> Default for SourceArguments<ArgumentState>
impl<ArgumentState: Default> Default for SourceArguments<ArgumentState>
sourcefn default() -> SourceArguments<ArgumentState>
fn default() -> SourceArguments<ArgumentState>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<ArgumentState> RefUnwindSafe for SourceArguments<ArgumentState>where
ArgumentState: RefUnwindSafe,
impl<ArgumentState> Send for SourceArguments<ArgumentState>where
ArgumentState: Send,
impl<ArgumentState> Sync for SourceArguments<ArgumentState>where
ArgumentState: Sync,
impl<ArgumentState> Unpin for SourceArguments<ArgumentState>where
ArgumentState: Unpin,
impl<ArgumentState> UnwindSafe for SourceArguments<ArgumentState>where
ArgumentState: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more