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: TypeDefinitionCommon
The common fields for this definition.
duty: DutyDefinitionCommon
The common fields for this duty.
name: String
The name of the new duty type.
holder: String
The 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: String
The 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