unobtanium 3.0.0

Opinioated Web search engine library with crawler and viewer companion.
Documentation

use url::Url;
use serde::{Serialize,Deserialize};

use uuid::Uuid;

use crate::time::UtcTimestamp;

#[derive(Clone,Debug,Serialize,Deserialize)]
pub struct SearchResult {

	/// The entity_generation UUID this result came from
	pub entity_generation_uuid: Uuid,

	/// The search result title
	pub title: String,

	/// The url of the search result
	pub url: Url,

	/// The search result description
	pub description: Option<String>,
	
	/// The time of publishing from the document metadata
	pub date_published: Option<UtcTimestamp>,

	/// The time the document was last updated according to document metadata.
	pub date_last_updated: Option<UtcTimestamp>,
}