pub struct ChannelDiff {
pub channel: String,
pub base: Option<Value>,
pub branch: Option<Value>,
}Expand description
One channel’s differing value at one super-step of a BranchDiff.
None means the channel was absent from that branch’s super-step-end
record at that step.
Fields§
§channel: StringThe state channel that differs.
base: Option<Value>The post-reducer value in the base branch, when present.
branch: Option<Value>The post-reducer value in the branch, when present.
Trait Implementations§
Source§impl Clone for ChannelDiff
impl Clone for ChannelDiff
Source§fn clone(&self) -> ChannelDiff
fn clone(&self) -> ChannelDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelDiff
impl Debug for ChannelDiff
Source§impl<'de> Deserialize<'de> for ChannelDiff
impl<'de> Deserialize<'de> for ChannelDiff
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 PartialEq for ChannelDiff
impl PartialEq for ChannelDiff
Source§impl Serialize for ChannelDiff
impl Serialize for ChannelDiff
impl StructuralPartialEq for ChannelDiff
Auto Trait Implementations§
impl Freeze for ChannelDiff
impl RefUnwindSafe for ChannelDiff
impl Send for ChannelDiff
impl Sync for ChannelDiff
impl Unpin for ChannelDiff
impl UnsafeUnpin for ChannelDiff
impl UnwindSafe for ChannelDiff
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