pub struct HistorySnapshot {
pub pending: Option<PendingHistoryOperation>,
pub candidates: Vec<HistoryCandidateSummary>,
pub loaded_candidate_id: Option<String>,
pub loaded: Option<HistorySessionRecord>,
pub last_error: Option<String>,
}Fields§
§pending: Option<PendingHistoryOperation>§candidates: Vec<HistoryCandidateSummary>§loaded_candidate_id: Option<String>§loaded: Option<HistorySessionRecord>§last_error: Option<String>Implementations§
Source§impl HistorySnapshot
impl HistorySnapshot
pub fn candidate(&self, candidate_id: &str) -> Option<&HistoryCandidateSummary>
Trait Implementations§
Source§impl Clone for HistorySnapshot
impl Clone for HistorySnapshot
Source§impl Debug for HistorySnapshot
impl Debug for HistorySnapshot
Source§impl Default for HistorySnapshot
impl Default for HistorySnapshot
Source§impl<'de> Deserialize<'de> for HistorySnapshot
impl<'de> Deserialize<'de> for HistorySnapshot
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 HistorySnapshot
Source§impl PartialEq for HistorySnapshot
impl PartialEq for HistorySnapshot
Source§impl Serialize for HistorySnapshot
impl Serialize for HistorySnapshot
impl StructuralPartialEq for HistorySnapshot
Auto Trait Implementations§
impl Freeze for HistorySnapshot
impl RefUnwindSafe for HistorySnapshot
impl Send for HistorySnapshot
impl Sync for HistorySnapshot
impl Unpin for HistorySnapshot
impl UnsafeUnpin for HistorySnapshot
impl UnwindSafe for HistorySnapshot
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