pub trait PeopleTrait: AddOnlyPeopleTrait {
// Required methods
fn suspend_personhood(suspensions: &[PersonalId]) -> DispatchResult;
fn start_people_set_mutation_session() -> DispatchResult;
fn end_people_set_mutation_session() -> DispatchResult;
}
Expand description
Trait to recognize and suspend people.
Required Methods§
Sourcefn suspend_personhood(suspensions: &[PersonalId]) -> DispatchResult
fn suspend_personhood(suspensions: &[PersonalId]) -> DispatchResult
Suspend a set of people. This operation must be called within a mutation session.
An error is returned if:
- a suspended personal id was already suspended.
- a personal id doesn’t belong to any person.
Sourcefn start_people_set_mutation_session() -> DispatchResult
fn start_people_set_mutation_session() -> DispatchResult
Start a mutation session for setting people.
An error is returned if the mutation session can be started at the moment. It is expected to become startable later.
Sourcefn end_people_set_mutation_session() -> DispatchResult
fn end_people_set_mutation_session() -> DispatchResult
End a mutation session for setting people.
An error is returned if there is no mutation session ongoing.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.