pub struct Dataset {
pub id: Uuid,
pub original_id: String,
pub source_portal: String,
pub url: String,
pub title: String,
pub description: Option<String>,
pub embedding: Option<Vector>,
pub metadata: Json<Value>,
pub first_seen_at: DateTime<Utc>,
pub last_updated_at: DateTime<Utc>,
pub content_hash: Option<String>,
}Expand description
Complete representation of a row from the ‘datasets’ table.
This structure represents a persisted dataset with all database fields, including system-generated identifiers and timestamps. It maps directly to the PostgreSQL schema and is used for reading data from the database.
§Fields
id- Unique identifier (UUID) generated by the databaseoriginal_id- Original identifier from the source portalsource_portal- Base URL of the originating CKAN portalurl- Public landing page URL for the datasettitle- Human-readable dataset titledescription- Optional detailed descriptionembedding- Optional 1536-dimensional vector for semantic searchmetadata- Additional metadata stored as JSONBfirst_seen_at- Timestamp when the dataset was first indexedlast_updated_at- Timestamp of the most recent update
Fields§
§id: UuidUnique identifier (UUID) generated by the database
original_id: StringOriginal identifier from the source portal
source_portal: StringBase URL of the originating CKAN portal
url: StringPublic landing page URL for the dataset
title: StringHuman-readable dataset title
description: Option<String>Optional detailed description
embedding: Option<Vector>Optional 1536-dimensional vector for semantic search (pgvector type)
metadata: Json<Value>Additional metadata stored as JSONB
first_seen_at: DateTime<Utc>Timestamp when the dataset was first indexed
last_updated_at: DateTime<Utc>Timestamp of the most recent update
content_hash: Option<String>SHA-256 hash of title + description for delta detection
Trait Implementations§
Source§impl<'a, R: Row> FromRow<'a, R> for Datasetwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<Vector>: Decode<'a, R::Database> + Type<R::Database>,
Json<Value>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for Datasetwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<Vector>: Decode<'a, R::Database> + Type<R::Database>,
Json<Value>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
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