pub struct FactorySnapshot {
pub configs: Vec<FactoryConfig>,
pub children: HashMap<String, Vec<DiscoveredChild>>,
}Expand description
A serializable snapshot of the factory registry state.
Used for persistence — serialize this to disk or storage on shutdown, and restore it on restart to avoid re-scanning the entire chain.
Fields§
§configs: Vec<FactoryConfig>All factory configurations.
children: HashMap<String, Vec<DiscoveredChild>>All discovered child contracts, keyed by factory address.
Trait Implementations§
Source§impl Clone for FactorySnapshot
impl Clone for FactorySnapshot
Source§fn clone(&self) -> FactorySnapshot
fn clone(&self) -> FactorySnapshot
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 FactorySnapshot
impl Debug for FactorySnapshot
Source§impl<'de> Deserialize<'de> for FactorySnapshot
impl<'de> Deserialize<'de> for FactorySnapshot
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
Auto Trait Implementations§
impl Freeze for FactorySnapshot
impl RefUnwindSafe for FactorySnapshot
impl Send for FactorySnapshot
impl Sync for FactorySnapshot
impl Unpin for FactorySnapshot
impl UnsafeUnpin for FactorySnapshot
impl UnwindSafe for FactorySnapshot
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