pub struct Bookmark {
pub id: BookmarkId,
pub original_url: String,
pub canonical_url: String,
pub title: String,
pub description: Option<String>,
pub tags: Vec<String>,
pub collection: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub source: SourceRef,
pub content_type: Option<String>,
pub archived: bool,
}Expand description
A normalized bookmark record.
original_url is preserved verbatim from the source. canonical_url
is normalized for dedupe (see canonical::canonicalize).
Fields§
§id: BookmarkIdStable identifier.
original_url: StringRaw URL as imported (never rewritten).
canonical_url: StringNormalized URL; the dedupe key.
title: StringDisplay title, trimmed.
description: Option<String>Optional human-readable description.
Sorted, lowercase, deduplicated tags.
collection: Option<String>Folder path, /-separated.
created_at: DateTime<Utc>First-seen timestamp (source clock or import time).
updated_at: DateTime<Utc>Last-modified timestamp.
source: SourceRefProvenance — where this record came from.
content_type: Option<String>Sniffed or declared MIME type, if known.
archived: boolSoft-delete marker (preserves history).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bookmark
impl<'de> Deserialize<'de> for Bookmark
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Bookmark
impl StructuralPartialEq for Bookmark
Auto Trait Implementations§
impl Freeze for Bookmark
impl RefUnwindSafe for Bookmark
impl Send for Bookmark
impl Sync for Bookmark
impl Unpin for Bookmark
impl UnsafeUnpin for Bookmark
impl UnwindSafe for Bookmark
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