pub struct SourceRow {
pub adapter: String,
pub instance: String,
pub location: Option<String>,
pub config_json: Option<String>,
pub added_at: i64,
pub last_import_at: Option<i64>,
}Expand description
Full row from sources — what list_sources_full and get_source
return. The legacy list_sources 3-tuple shape stays for back-compat.
instance is the empty string "" (NOT None) to represent the
default instance — that’s the canonical key the table uses (see
0002_phase1.sql). Callers that work in Option<String> must convert
at the boundary.
Fields§
§adapter: StringAdapter id (e.g. "claude-code").
instance: StringInstance discriminator — "" for the default instance.
location: Option<String>User-registered location (path / URL / connection string). None
when registered without one — import will fall back to the
adapter default and register that as the canonical location.
config_json: Option<String>JSON-encoded adapter-specific config, opaque to the store.
added_at: i64Unix epoch seconds — when the source was first registered.
last_import_at: Option<i64>Unix epoch seconds — when the last successful (non-dry-run)
import finished. None until the first import lands.
Trait Implementations§
impl Eq for SourceRow
impl StructuralPartialEq for SourceRow
Auto Trait Implementations§
impl Freeze for SourceRow
impl RefUnwindSafe for SourceRow
impl Send for SourceRow
impl Sync for SourceRow
impl Unpin for SourceRow
impl UnsafeUnpin for SourceRow
impl UnwindSafe for SourceRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.