pub struct HistorylistEntity {
pub id: HistorylistEntityId,
pub list_id: HistorylistId,
pub track_id: TrackId,
pub start_time: UnixTimestamp,
}Expand description
Entry in a Historylist.
The terminology used in the schema is confusing and the table
should have been named HistorylistEntry instead of HistorylistEntity.
Fields§
§id: HistorylistEntityId§list_id: HistorylistId§track_id: TrackId§start_time: UnixTimestampImplementations§
Source§impl HistorylistEntity
impl HistorylistEntity
Sourcepub fn fetch_all<'a>(
executor: impl SqliteExecutor<'a> + 'a,
) -> BoxStream<'a, Result<Self>>
pub fn fetch_all<'a>( executor: impl SqliteExecutor<'a> + 'a, ) -> BoxStream<'a, Result<Self>>
Fetches all HistorylistEntitys asynchronously.
Unfiltered and in no particular order.
Sourcepub fn fetch_list<'a>(
executor: impl SqliteExecutor<'a> + 'a,
list_id: HistorylistId,
) -> BoxStream<'a, Result<Self>>
pub fn fetch_list<'a>( executor: impl SqliteExecutor<'a> + 'a, list_id: HistorylistId, ) -> BoxStream<'a, Result<Self>>
Fetches all items of a list asynchronously.
In no particular order.
Sourcepub async fn try_load(
executor: impl SqliteExecutor<'_>,
id: HistorylistEntityId,
) -> Result<Option<Self>>
pub async fn try_load( executor: impl SqliteExecutor<'_>, id: HistorylistEntityId, ) -> Result<Option<Self>>
Loads a single HistorylistEntity by ID.
Returns Ok(None) if the requested HistorylistEntity has not been found.
Trait Implementations§
Source§impl Clone for HistorylistEntity
impl Clone for HistorylistEntity
Source§fn clone(&self) -> HistorylistEntity
fn clone(&self) -> HistorylistEntity
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 moreSource§impl Debug for HistorylistEntity
impl Debug for HistorylistEntity
Source§impl<'a, R: Row> FromRow<'a, R> for HistorylistEntity
impl<'a, R: Row> FromRow<'a, R> for HistorylistEntity
Auto Trait Implementations§
impl Freeze for HistorylistEntity
impl RefUnwindSafe for HistorylistEntity
impl Send for HistorylistEntity
impl Sync for HistorylistEntity
impl Unpin for HistorylistEntity
impl UnwindSafe for HistorylistEntity
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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