pub struct SystemContract {
pub name: String,
pub phase: BoundaryPhase,
pub cadence: SystemCadence,
pub reads: Vec<StateKey>,
pub writes: Vec<StateKey>,
pub visibility: StateVisibility,
}Fields§
§name: String§phase: BoundaryPhase§cadence: SystemCadence§reads: Vec<StateKey>§writes: Vec<StateKey>§visibility: StateVisibilityImplementations§
Source§impl SystemContract
impl SystemContract
pub fn event_driven( name: impl Into<String>, phase: BoundaryPhase, ) -> SystemContract
Trait Implementations§
Source§impl Clone for SystemContract
impl Clone for SystemContract
Source§fn clone(&self) -> SystemContract
fn clone(&self) -> SystemContract
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 SystemContract
impl Debug for SystemContract
Source§impl<'de> Deserialize<'de> for SystemContract
impl<'de> Deserialize<'de> for SystemContract
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SystemContract
Source§impl PartialEq for SystemContract
impl PartialEq for SystemContract
Source§impl Serialize for SystemContract
impl Serialize for SystemContract
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
impl StructuralPartialEq for SystemContract
Auto Trait Implementations§
impl Freeze for SystemContract
impl RefUnwindSafe for SystemContract
impl Send for SystemContract
impl Sync for SystemContract
impl Unpin for SystemContract
impl UnsafeUnpin for SystemContract
impl UnwindSafe for SystemContract
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