pub struct SessionRecord {Show 13 fields
pub session_id: String,
pub task_id: String,
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 generation: i64,
pub seq: i64,
pub backend_ref: String,
pub mismatch_count: i64,
pub updated_at: i64,
}Expand description
One stored session tuple, as the ledger columns hold it. No public view is among them: the projection is derived by whoever asks, from these columns plus the task state that caller owns.
Fields§
§session_id: StringThe row’s own key. A session serves one delivery at a time and keeps its
own id while that binding moves, so the two are separate facts: this one
names the session, and task_id names the delivery the caller asked
about.
task_id: StringThe delivery this session serves, as the caller named it. Not the row’s key: the session id is.
agent_state: String§delivery_state: String§resource_state: String§recovery_substate: String§desired_json: String§observed_json: String§generation: i64§seq: i64§backend_ref: String§mismatch_count: i64§updated_at: i64Trait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Source§impl Debug for SessionRecord
impl Debug for SessionRecord
Source§impl<'de> Deserialize<'de> for SessionRecord
impl<'de> Deserialize<'de> for SessionRecord
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 SessionRecord
Source§impl PartialEq for SessionRecord
impl PartialEq for SessionRecord
Source§impl Serialize for SessionRecord
impl Serialize for SessionRecord
impl StructuralPartialEq for SessionRecord
Auto Trait Implementations§
impl Freeze for SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnsafeUnpin for SessionRecord
impl UnwindSafe for SessionRecord
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