pub struct OpenOptions<'a> {
pub hints: SourceHints<'a>,
pub credentials: &'a [Credential<'a>],
pub view: Option<DataViewSelector<'a>>,
pub verification: VerificationPolicy,
}Expand description
Immutable options supplied when opening or reopening a data source.
Fields§
§hints: SourceHints<'a>Related-source resolver and identity hints.
credentials: &'a [Credential<'a>]Optional credentials such as passwords or keys.
view: Option<DataViewSelector<'a>>Optional generic child-view selector.
verification: VerificationPolicyVerification strictness requested by the caller.
Implementations§
Source§impl<'a> OpenOptions<'a>
impl<'a> OpenOptions<'a>
Sourcepub fn with_hints(self, hints: SourceHints<'a>) -> Self
pub fn with_hints(self, hints: SourceHints<'a>) -> Self
Attach related-source hints.
Sourcepub fn with_credentials(self, credentials: &'a [Credential<'a>]) -> Self
pub fn with_credentials(self, credentials: &'a [Credential<'a>]) -> Self
Attach credentials.
Sourcepub fn with_view(self, view: DataViewSelector<'a>) -> Self
pub fn with_view(self, view: DataViewSelector<'a>) -> Self
Attach a child-view selector.
Sourcepub fn with_verification(self, verification: VerificationPolicy) -> Self
pub fn with_verification(self, verification: VerificationPolicy) -> Self
Attach a verification policy.
Trait Implementations§
Source§impl<'a> Clone for OpenOptions<'a>
impl<'a> Clone for OpenOptions<'a>
Source§fn clone(&self) -> OpenOptions<'a>
fn clone(&self) -> OpenOptions<'a>
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<'a> Default for OpenOptions<'a>
impl<'a> Default for OpenOptions<'a>
Source§fn default() -> OpenOptions<'a>
fn default() -> OpenOptions<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for OpenOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for OpenOptions<'a>
impl<'a> !RefUnwindSafe for OpenOptions<'a>
impl<'a> Send for OpenOptions<'a>
impl<'a> Sync for OpenOptions<'a>
impl<'a> Unpin for OpenOptions<'a>
impl<'a> UnsafeUnpin for OpenOptions<'a>
impl<'a> !UnwindSafe for OpenOptions<'a>
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