pub struct SessionWrite {Show 14 fields
pub session_id: String,
pub task_id: Option<String>,
pub role: String,
pub generation: i64,
pub seq: i64,
pub agent_state: String,
pub delivery_state: String,
pub resource_state: String,
pub recovery_substate: String,
pub desired_json: String,
pub observed_json: String,
pub mismatch_count: i64,
pub last_seen: i64,
pub updated_at: i64,
}Expand description
One mirror row as a writer hands it over, and as a reader gets it back.
The address is session_id, which is the table’s key: a session serves one
delivery at a time, and the deliveries it serves live in session_tasks
rather than in this row. task_id is the delivery the write is about — the
binding a writer opens — and on a read it is the delivery the session is
serving now, derived from its open session_tasks row and absent when the
session is on no delivery.
Fields§
§session_id: String§task_id: Option<String>§role: String§generation: i64§seq: i64§agent_state: String§delivery_state: String§resource_state: String§recovery_substate: String§desired_json: String§observed_json: String§mismatch_count: i64§last_seen: i64When the mirror last saw this session, in unix seconds. Stored as the RFC 3339 text the crate’s helpers produce.
updated_at: i64When the projection content last moved, in unix seconds.
Trait Implementations§
Source§impl Clone for SessionWrite
impl Clone for SessionWrite
Source§impl Debug for SessionWrite
impl Debug for SessionWrite
Source§impl<'de> Deserialize<'de> for SessionWrite
impl<'de> Deserialize<'de> for SessionWrite
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 SessionWrite
Source§impl PartialEq for SessionWrite
impl PartialEq for SessionWrite
Source§impl Serialize for SessionWrite
impl Serialize for SessionWrite
impl StructuralPartialEq for SessionWrite
Auto Trait Implementations§
impl Freeze for SessionWrite
impl RefUnwindSafe for SessionWrite
impl Send for SessionWrite
impl Sync for SessionWrite
impl Unpin for SessionWrite
impl UnsafeUnpin for SessionWrite
impl UnwindSafe for SessionWrite
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