pub struct ContractInheritance {
pub id: ContractId,
pub parent_id: ContractId,
pub child_id: ContractId,
pub inherited_policies: Vec<ContractId>,
pub overrides: Vec<InheritanceOverride>,
pub propagate_changes: bool,
pub created_at: DateTime<Utc>,
}Expand description
A hierarchical contract relationship.
Fields§
§id: ContractIdUnique identifier.
parent_id: ContractIdParent contract ID.
child_id: ContractIdChild contract ID.
inherited_policies: Vec<ContractId>What the child inherits.
overrides: Vec<InheritanceOverride>What the child overrides.
propagate_changes: boolWhether parent changes propagate.
created_at: DateTime<Utc>When this relationship was created.
Trait Implementations§
Source§impl Clone for ContractInheritance
impl Clone for ContractInheritance
Source§fn clone(&self) -> ContractInheritance
fn clone(&self) -> ContractInheritance
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 ContractInheritance
impl Debug for ContractInheritance
Source§impl<'de> Deserialize<'de> for ContractInheritance
impl<'de> Deserialize<'de> for ContractInheritance
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 ContractInheritance
impl RefUnwindSafe for ContractInheritance
impl Send for ContractInheritance
impl Sync for ContractInheritance
impl Unpin for ContractInheritance
impl UnsafeUnpin for ContractInheritance
impl UnwindSafe for ContractInheritance
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