pub struct SyncRequest {
pub session: Option<i64>,
pub from_us: Option<i64>,
pub to_us: Option<i64>,
pub tables: Vec<SyncTable>,
}Expand description
The window selector a mark-synced request carries. An exported window is
flipped from unsynced to synced over exactly this selector, so it shares the
vocabulary of the export filter: an optional session, a half-open
[from_us, to_us) microsecond window, and an optional table list. An empty
tables means all four. All fields absent marks every unsynced row.
Fields§
§session: Option<i64>Restrict the mark to one session id.
from_us: Option<i64>Inclusive lower bound, microsecond epoch.
to_us: Option<i64>Exclusive upper bound, microsecond epoch.
tables: Vec<SyncTable>The tables to mark; empty means all four.
Implementations§
Source§impl SyncRequest
impl SyncRequest
Sourcepub fn tables_or_all(&self) -> Vec<SyncTable>
pub fn tables_or_all(&self) -> Vec<SyncTable>
The requested tables, expanding an empty selector to all four.
Trait Implementations§
Source§impl Clone for SyncRequest
impl Clone for SyncRequest
Source§impl Debug for SyncRequest
impl Debug for SyncRequest
Source§impl Default for SyncRequest
impl Default for SyncRequest
Source§impl<'de> Deserialize<'de> for SyncRequest
impl<'de> Deserialize<'de> for SyncRequest
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
Source§impl PartialEq for SyncRequest
impl PartialEq for SyncRequest
Source§impl Serialize for SyncRequest
impl Serialize for SyncRequest
impl StructuralPartialEq for SyncRequest
Auto Trait Implementations§
impl Freeze for SyncRequest
impl RefUnwindSafe for SyncRequest
impl Send for SyncRequest
impl Sync for SyncRequest
impl Unpin for SyncRequest
impl UnsafeUnpin for SyncRequest
impl UnwindSafe for SyncRequest
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