pub struct ChangeUnit {
pub seq: usize,
pub cut_id: String,
pub change_id: String,
pub branch_id: String,
pub path: String,
pub before: Option<String>,
pub after: Option<String>,
pub origin: Option<String>,
pub actor: Option<String>,
pub intent: Option<String>,
pub recorded_at: String,
pub decls: Vec<DeclUnit>,
}Expand description
One recorded change-unit: what one cut did to one path.
Fields§
§seq: usizePosition in the branch’s cut order, oldest first — the dependence direction.
cut_id: String§change_id: String§branch_id: String§path: String§before: Option<String>§after: Option<String>§origin: Option<String>§actor: Option<String>The cut’s observed principal (DR-0052; None = pre-actor row).
intent: Option<String>The motivating work item / incident id, when the operation carried one (repair cuts always do; ordinary writes may not).
recorded_at: String§decls: Vec<DeclUnit>Declaration-level sub-rows (DR-0054): the declarations this unit
changed, when both sides of a .whip path had a canonical form.
Empty = attribution stays path-level for this unit (fail closed,
never guessed).
Trait Implementations§
Source§impl Clone for ChangeUnit
impl Clone for ChangeUnit
Source§fn clone(&self) -> ChangeUnit
fn clone(&self) -> ChangeUnit
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 ChangeUnit
impl Debug for ChangeUnit
Source§impl<'de> Deserialize<'de> for ChangeUnit
impl<'de> Deserialize<'de> for ChangeUnit
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 ChangeUnit
Source§impl PartialEq for ChangeUnit
impl PartialEq for ChangeUnit
Source§impl Serialize for ChangeUnit
impl Serialize for ChangeUnit
impl StructuralPartialEq for ChangeUnit
Auto Trait Implementations§
impl Freeze for ChangeUnit
impl RefUnwindSafe for ChangeUnit
impl Send for ChangeUnit
impl Sync for ChangeUnit
impl Unpin for ChangeUnit
impl UnsafeUnpin for ChangeUnit
impl UnwindSafe for ChangeUnit
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