Struct PromotionContract
pub struct PromotionContract {
pub field: String,
pub state_key: String,
pub merge: String,
pub has_predicate: bool,
}Expand description
A field promotion declaration.
Fields§
§field: StringField in raw extractor output.
state_key: StringCanonical state key written on acceptance.
merge: StringMerge policy.
has_predicate: boolWhether this promotion has an acceptance predicate.
Trait Implementations§
§impl Clone for PromotionContract
impl Clone for PromotionContract
§fn clone(&self) -> PromotionContract
fn clone(&self) -> PromotionContract
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 more§impl Debug for PromotionContract
impl Debug for PromotionContract
§impl<'de> Deserialize<'de> for PromotionContract
impl<'de> Deserialize<'de> for PromotionContract
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromotionContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromotionContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for PromotionContract
impl Serialize for PromotionContract
§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 PromotionContract
impl RefUnwindSafe for PromotionContract
impl Send for PromotionContract
impl Sync for PromotionContract
impl Unpin for PromotionContract
impl UnwindSafe for PromotionContract
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