pub struct Source {
pub id: String,
pub source_type: SourceType,
pub path: PathBuf,
pub status: SyncStatus,
pub last_sync: Option<i64>,
pub file_count: u64,
pub memory_count: u64,
pub last_sync_errors: u64,
pub last_sync_error_detail: Option<String>,
}Expand description
Persisted source configuration – stored in config.json.
Fields§
§id: String§source_type: SourceType§path: PathBuf§status: SyncStatus§last_sync: Option<i64>§file_count: u64§memory_count: u64§last_sync_errors: u64Number of files that failed to read / ingest in the last sync.
last_sync_error_detail: Option<String>Categorized detail of last sync errors for UI display. Known values: “google_drive_offline”, “file_read_errors”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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