pub struct QueryEnvOptsBuilder { /* private fields */ }
Expand description
Builder for QueryEnvOpts
.
Implementations§
Source§impl QueryEnvOptsBuilder
impl QueryEnvOptsBuilder
Sourcepub fn privileged<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn privileged<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Give the environment the same privileges as the caller: core API including host access, current module, and dependencies
Sourcepub fn writable<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn writable<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Allow new outputs to be declared and saved in the environment
Sourcepub fn build(&self) -> Result<QueryEnvOpts, QueryEnvOptsBuilderError>
pub fn build(&self) -> Result<QueryEnvOpts, QueryEnvOptsBuilderError>
Trait Implementations§
Source§impl Clone for QueryEnvOptsBuilder
impl Clone for QueryEnvOptsBuilder
Source§fn clone(&self) -> QueryEnvOptsBuilder
fn clone(&self) -> QueryEnvOptsBuilder
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 moreAuto Trait Implementations§
impl Freeze for QueryEnvOptsBuilder
impl RefUnwindSafe for QueryEnvOptsBuilder
impl Send for QueryEnvOptsBuilder
impl Sync for QueryEnvOptsBuilder
impl Unpin for QueryEnvOptsBuilder
impl UnwindSafe for QueryEnvOptsBuilder
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