pub enum PhraseExtend {
Fact(PhraseExtendFact),
Event(PhraseExtendEvent),
Act(PhraseExtendAct),
Duty(PhraseExtendDuty),
}
Expand description
Defines an extension to an existing type, e.g.,
Extend Duty duty-to-vote
Conditioned by can-vote(voter).
Variants§
Fact(PhraseExtendFact)
Extend a Fact, e.g.,
Extend Fact vote
Conditioned by citizen.person != candidate.person.
Event(PhraseExtendEvent)
Extend an Event, e.g.,
Extend Event fire
Creates ash().
Act(PhraseExtendAct)
Extend an Act, e.g.,
Extend Act vote
Terminates (Foreach administrator : duty-to-vote(citizen, administrator)).
Duty(PhraseExtendDuty)
Extend a Duty, e.g.,
Extend Duty duty-to-vote
Conditioned by can-vote(voter).
Implementations§
Source§impl PhraseExtend
impl PhraseExtend
Sourcepub fn kind(&self) -> ExtendKind
pub fn kind(&self) -> ExtendKind
Returns the auxillary::ExtendKind
that describes what this PhraseExtend extends.
§Returns
An equivalent auxillary::ExtendKind
.
Trait Implementations§
Source§impl Clone for PhraseExtend
impl Clone for PhraseExtend
Source§fn clone(&self) -> PhraseExtend
fn clone(&self) -> PhraseExtend
Returns a copy 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 PhraseExtend
impl Debug for PhraseExtend
Source§impl<'de> Deserialize<'de> for PhraseExtend
impl<'de> Deserialize<'de> for PhraseExtend
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
Source§impl EnumDebug for PhraseExtend
impl EnumDebug for PhraseExtend
Source§fn type_name() -> &'static str
fn type_name() -> &'static str
Returns the static name of the type used for EnumDebug-printing. Read more
Source§fn variant_names() -> &'static [&'static str]
fn variant_names() -> &'static [&'static str]
Returns all variants in the trait as a list of names. Read more
Source§fn variant_name(&self) -> &'static str
fn variant_name(&self) -> &'static str
Returns the static name of the variant. Read more
Source§fn variant(&self) -> EnumDebugFormatter<'_, Self>
fn variant(&self) -> EnumDebugFormatter<'_, Self>
Returns a formatter for this enum that writes its variant name. Read more
Auto Trait Implementations§
impl Freeze for PhraseExtend
impl RefUnwindSafe for PhraseExtend
impl Send for PhraseExtend
impl Sync for PhraseExtend
impl Unpin for PhraseExtend
impl UnwindSafe for PhraseExtend
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