pub struct RewriteRecord {
pub node_id: String,
pub session_id: String,
pub action: RewriteAction,
pub category: EscalationCategory,
pub requeued_nodes: Vec<String>,
pub inserted_nodes: Vec<String>,
pub timestamp: i64,
}Expand description
PSP-5 Phase 5: Record of a local graph rewrite applied by the orchestrator.
Stored in the ledger so Phase 8 resume can replay or audit rewrite history.
Fields§
§node_id: StringNode that was rewritten.
session_id: StringSession this record belongs to.
action: RewriteActionThe rewrite action that was applied.
category: EscalationCategoryCategory that triggered the rewrite.
requeued_nodes: Vec<String>Node IDs that were requeued as a result.
inserted_nodes: Vec<String>Node IDs that were newly inserted (e.g. interface insertion).
timestamp: i64Timestamp (epoch seconds).
Trait Implementations§
Source§impl Clone for RewriteRecord
impl Clone for RewriteRecord
Source§fn clone(&self) -> RewriteRecord
fn clone(&self) -> RewriteRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 RewriteRecord
impl Debug for RewriteRecord
Source§impl<'de> Deserialize<'de> for RewriteRecord
impl<'de> Deserialize<'de> for RewriteRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RewriteRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RewriteRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RewriteRecord
impl Serialize for RewriteRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RewriteRecord
impl RefUnwindSafe for RewriteRecord
impl Send for RewriteRecord
impl Sync for RewriteRecord
impl Unpin for RewriteRecord
impl UnsafeUnpin for RewriteRecord
impl UnwindSafe for RewriteRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more