pub struct DocumentSetupOptions { /* private fields */ }Expand description
Options for setting up Document instances with the driver
Implementations§
Source§impl DocumentSetupOptions
impl DocumentSetupOptions
Sourcepub fn new_with_security(security: SecuritySettings) -> Self
pub fn new_with_security(security: SecuritySettings) -> Self
Create a new set of document setup options with custom security settings.
Sourcepub fn only_cached(&mut self, s: bool) -> &mut Self
pub fn only_cached(&mut self, s: bool) -> &mut Self
Specify whether any requests to the network will be made for bundle resources.
If the document’s backing bundle is not network-based, this setting will have no effect.
Sourcepub fn deterministic_mode(&mut self, s: bool) -> &mut Self
pub fn deterministic_mode(&mut self, s: bool) -> &mut Self
Specify whether we want to ensure a deterministic build environment.
Trait Implementations§
Source§impl Clone for DocumentSetupOptions
impl Clone for DocumentSetupOptions
Source§fn clone(&self) -> DocumentSetupOptions
fn clone(&self) -> DocumentSetupOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentSetupOptions
impl Debug for DocumentSetupOptions
Source§impl Default for DocumentSetupOptions
impl Default for DocumentSetupOptions
Source§fn default() -> DocumentSetupOptions
fn default() -> DocumentSetupOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocumentSetupOptions
impl RefUnwindSafe for DocumentSetupOptions
impl Send for DocumentSetupOptions
impl Sync for DocumentSetupOptions
impl Unpin for DocumentSetupOptions
impl UnsafeUnpin for DocumentSetupOptions
impl UnwindSafe for DocumentSetupOptions
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