pub struct TranscriptEntry {
pub session_id: String,
pub index: u64,
pub previous: String,
pub at: DateTime<Utc>,
pub direction: Option<Direction>,
pub data: String,
}Expand description
One transcript entry. Each names the hash of the one before, so an entry that is removed or changed breaks the chain.
Fields§
§session_id: StringSession id.
index: u64Position in the session, from 0. Entry 0 holds the statement.
previous: Stringsha256:<hex> of the previous entry, or the statement digest for entry 0.
at: DateTime<Utc>When it was recorded.
direction: Option<Direction>Direction, for frames.
data: StringBase64 of the frame, or of the statement JSON for entry 0.
Implementations§
Trait Implementations§
Source§impl Clone for TranscriptEntry
impl Clone for TranscriptEntry
Source§impl Debug for TranscriptEntry
impl Debug for TranscriptEntry
Source§impl<'de> Deserialize<'de> for TranscriptEntry
impl<'de> Deserialize<'de> for TranscriptEntry
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 TranscriptEntry
Source§impl PartialEq for TranscriptEntry
impl PartialEq for TranscriptEntry
Source§impl Serialize for TranscriptEntry
impl Serialize for TranscriptEntry
impl StructuralPartialEq for TranscriptEntry
Auto Trait Implementations§
impl Forget for TranscriptEntry
impl Freeze for TranscriptEntry
impl Move for TranscriptEntry
impl RefUnwindSafe for TranscriptEntry
impl Send for TranscriptEntry
impl Sync for TranscriptEntry
impl Unpin for TranscriptEntry
impl UnsafeUnpin for TranscriptEntry
impl UnwindSafe for TranscriptEntry
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