pub struct PhraseDuty {
pub definition: TypeDefinitionCommon,
pub duty: DutyDefinitionCommon,
pub name: String,
pub holder: String,
pub claimant: String,
pub related_to: Vec<String>,
}Expand description
Defines an obligation that two actors have, e.g.,
Duty must-vote
Holder citizen
Claimant administrator
Enforced by not-voted.Fields§
§definition: TypeDefinitionCommonThe common fields for this definition.
duty: DutyDefinitionCommonThe common fields for this duty.
name: StringThe name of the new duty type.
holder: StringThe actor that has to perform the duty. Given as the identifier of a particular type (as in, this is a field to the parent type).
claimant: StringThe actor that has power to enforce the holder doing the duty. Given as the identifier of a particular type (as in, this is a field to the parent type).
Any fields for this act other than holder and claimant, basically.
Trait Implementations§
Source§impl Clone for PhraseDuty
impl Clone for PhraseDuty
Source§fn clone(&self) -> PhraseDuty
fn clone(&self) -> PhraseDuty
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 PhraseDuty
impl Debug for PhraseDuty
Source§impl<'de> Deserialize<'de> for PhraseDuty
impl<'de> Deserialize<'de> for PhraseDuty
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 PhraseDuty
impl RefUnwindSafe for PhraseDuty
impl Send for PhraseDuty
impl Sync for PhraseDuty
impl Unpin for PhraseDuty
impl UnwindSafe for PhraseDuty
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