pub struct TemporalContract {
pub id: ContractId,
pub label: String,
pub initial_level: GovernanceLevel,
pub current_level: GovernanceLevel,
pub transitions: Vec<GovernanceTransition>,
pub transition_conditions: Vec<String>,
pub performance_history: Vec<f64>,
pub created_at: DateTime<Utc>,
}Expand description
A contract that evolves over time.
Fields§
§id: ContractIdUnique identifier.
label: StringContract label.
initial_level: GovernanceLevelInitial governance level.
current_level: GovernanceLevelCurrent governance level.
transitions: Vec<GovernanceTransition>Planned transitions.
transition_conditions: Vec<String>Conditions that must be met for transitions.
performance_history: Vec<f64>Performance history (0.0-1.0 per period).
created_at: DateTime<Utc>When created.
Trait Implementations§
Source§impl Clone for TemporalContract
impl Clone for TemporalContract
Source§fn clone(&self) -> TemporalContract
fn clone(&self) -> TemporalContract
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 TemporalContract
impl Debug for TemporalContract
Source§impl<'de> Deserialize<'de> for TemporalContract
impl<'de> Deserialize<'de> for TemporalContract
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 TemporalContract
impl RefUnwindSafe for TemporalContract
impl Send for TemporalContract
impl Sync for TemporalContract
impl Unpin for TemporalContract
impl UnsafeUnpin for TemporalContract
impl UnwindSafe for TemporalContract
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