pub struct TxData(pub isize, pub Value, pub Aid, pub Value, pub Option<Time>);
Expand description
Transaction data.
Tuple Fields§
§0: isize
§1: Value
§2: Aid
§3: Value
§4: Option<Time>
Implementations§
Source§impl TxData
impl TxData
Sourcepub fn add(e: Eid, a: &str, v: Value) -> Self
pub fn add(e: Eid, a: &str, v: Value) -> Self
Creates TxData representing the addition of a single fact.
Sourcepub fn add_at(e: Eid, a: &str, v: Value, t: Time) -> Self
pub fn add_at(e: Eid, a: &str, v: Value, t: Time) -> Self
Creates TxData representing the addition of a single fact at a specific point in time.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxData
impl<'de> Deserialize<'de> for TxData
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 Ord for TxData
impl Ord for TxData
Source§impl PartialOrd for TxData
impl PartialOrd for TxData
impl Eq for TxData
impl StructuralPartialEq for TxData
Auto Trait Implementations§
impl Freeze for TxData
impl RefUnwindSafe for TxData
impl Send for TxData
impl Sync for TxData
impl Unpin for TxData
impl UnwindSafe for TxData
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