pub struct SyncFile {
pub status: String,
pub path: String,
pub last_modified: i64,
pub client_last_modified: i64,
pub client_last_synced: i64,
pub content: String,
}Expand description
A file in the sync protocol.
Fields§
§status: StringStatus of this file in the sync response.
path: StringFile path (relative to knowledge base root).
last_modified: i64Last modified timestamp (ms since epoch).
client_last_modified: i64Client’s last modification time.
client_last_synced: i64Client’s last sync time.
content: StringFile content.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncFile
impl<'de> Deserialize<'de> for SyncFile
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 SyncFile
impl RefUnwindSafe for SyncFile
impl Send for SyncFile
impl Sync for SyncFile
impl Unpin for SyncFile
impl UnsafeUnpin for SyncFile
impl UnwindSafe for SyncFile
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