pub struct LibsqlTaskRow {Show 13 fields
pub job: Vec<u8>,
pub id: Option<String>,
pub job_type: Option<String>,
pub status: Option<String>,
pub attempts: Option<i64>,
pub max_attempts: Option<i64>,
pub run_at: Option<i64>,
pub last_error: Option<String>,
pub lock_at: Option<i64>,
pub lock_by: Option<String>,
pub done_at: Option<i64>,
pub priority: Option<i64>,
pub metadata: Option<String>,
}Expand description
A task row from the libSQL database
Fields§
§job: Vec<u8>§id: Option<String>§job_type: Option<String>§status: Option<String>§attempts: Option<i64>§max_attempts: Option<i64>§run_at: Option<i64>§last_error: Option<String>§lock_at: Option<i64>§lock_by: Option<String>§done_at: Option<i64>§priority: Option<i64>§metadata: Option<String>Implementations§
Source§impl LibsqlTaskRow
impl LibsqlTaskRow
Sourcepub fn from_row(row: &Row) -> Result<Self, LibsqlError>
pub fn from_row(row: &Row) -> Result<Self, LibsqlError>
Create a LibsqlTaskRow from a libsql::Row
Expects columns in the order returned by the fetch_next query: job, id, job_type, status, attempts, max_attempts, run_at, last_error, lock_at, lock_by, done_at, priority, metadata
Trait Implementations§
Source§impl Debug for LibsqlTaskRow
impl Debug for LibsqlTaskRow
Source§impl TryFrom<LibsqlTaskRow> for TaskRow
impl TryFrom<LibsqlTaskRow> for TaskRow
Source§type Error = LibsqlError
type Error = LibsqlError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for LibsqlTaskRow
impl RefUnwindSafe for LibsqlTaskRow
impl Send for LibsqlTaskRow
impl Sync for LibsqlTaskRow
impl Unpin for LibsqlTaskRow
impl UnwindSafe for LibsqlTaskRow
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request