pub(crate) struct ActivityRow {
pub(crate) id: i64,
pub(crate) reflector: String,
pub(crate) module: Option<String>,
pub(crate) callsign: String,
pub(crate) source: String,
pub(crate) observed_at: DateTime<Utc>,
}Expand description
A single row from the activity_log table.
Maps directly to the table columns via sqlx::FromRow.
Fields§
§id: i64Auto-generated row identifier.
Populated by sqlx::FromRow from the BIGSERIAL primary key and
surfaced in ActivityView so clients can deduplicate rows across
paged queries.
reflector: StringReflector callsign (foreign key to reflectors.callsign).
module: Option<String>Module letter (A-Z), or None if the source did not specify.
callsign: StringCallsign of the operator or node that was heard.
source: StringData source that produced this observation.
observed_at: DateTime<Utc>When the activity was observed.
Trait Implementations§
Source§impl Debug for ActivityRow
impl Debug for ActivityRow
Source§impl From<ActivityRow> for ActivityView
impl From<ActivityRow> for ActivityView
Source§fn from(row: ActivityRow) -> Self
fn from(row: ActivityRow) -> Self
Converts to this type from the input type.
Source§impl<'a, R: Row> FromRow<'a, R> for ActivityRow
impl<'a, R: Row> FromRow<'a, R> for ActivityRow
Auto Trait Implementations§
impl Freeze for ActivityRow
impl RefUnwindSafe for ActivityRow
impl Send for ActivityRow
impl Sync for ActivityRow
impl Unpin for ActivityRow
impl UnwindSafe for ActivityRow
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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