pub struct SimplifyContextBuilder { /* private fields */ }Expand description
Builder for SimplifyContext.
Implementations§
Source§impl SimplifyContextBuilder
impl SimplifyContextBuilder
Sourcepub fn with_config_options(self, config_options: Arc<ConfigOptions>) -> Self
pub fn with_config_options(self, config_options: Arc<ConfigOptions>) -> Self
Set the ConfigOptions for this context.
Sourcepub fn with_schema(self, schema: DFSchemaRef) -> Self
pub fn with_schema(self, schema: DFSchemaRef) -> Self
Set the schema for this context.
Sourcepub fn with_query_execution_start_time(
self,
query_execution_start_time: Option<DateTime<Utc>>,
) -> Self
pub fn with_query_execution_start_time( self, query_execution_start_time: Option<DateTime<Utc>>, ) -> Self
Set the query execution start time.
Sourcepub fn with_current_time(self) -> Self
pub fn with_current_time(self) -> Self
Set the query execution start to the current time.
Sourcepub fn build(self) -> SimplifyContext
pub fn build(self) -> SimplifyContext
Build a SimplifyContext, filling in any unspecified fields with defaults.
Trait Implementations§
Source§impl Debug for SimplifyContextBuilder
impl Debug for SimplifyContextBuilder
Source§impl Default for SimplifyContextBuilder
impl Default for SimplifyContextBuilder
Source§fn default() -> SimplifyContextBuilder
fn default() -> SimplifyContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SimplifyContextBuilder
impl !UnwindSafe for SimplifyContextBuilder
impl Freeze for SimplifyContextBuilder
impl Send for SimplifyContextBuilder
impl Sync for SimplifyContextBuilder
impl Unpin for SimplifyContextBuilder
impl UnsafeUnpin for SimplifyContextBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more