pub struct TaskTableBuilder { /* private fields */ }
Expand description
Use this to make TaskTables
.
Implementations§
Source§impl TaskTableBuilder
impl TaskTableBuilder
pub fn new() -> Self
Sourcepub fn schema_name(self, schema_name: impl ToString) -> Self
pub fn schema_name(self, schema_name: impl ToString) -> Self
The postgres schema name to install the task queue table into.
Sourcepub fn base_name(self, base_name: impl ToString) -> Self
pub fn base_name(self, base_name: impl ToString) -> Self
Prefix name used for the postgres entities. Useful if you want to install multiple independent task queues into the same schema.
pub fn build(self) -> TaskTables
Trait Implementations§
Source§impl Default for TaskTableBuilder
impl Default for TaskTableBuilder
Source§fn default() -> TaskTableBuilder
fn default() -> TaskTableBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaskTableBuilder
impl RefUnwindSafe for TaskTableBuilder
impl Send for TaskTableBuilder
impl Sync for TaskTableBuilder
impl Unpin for TaskTableBuilder
impl UnwindSafe for TaskTableBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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