#[non_exhaustive]pub enum TurnOrigin {
Human,
GoalRound {
revision: u64,
round: u32,
},
Automation,
}Expand description
Who started the turn a goal operation happens in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Human
A person, through a client or the host.
GoalRound
An automatic goal round.
Automation
Anything else that starts turns on its own, such as a scheduled job.
Implementations§
Source§impl TurnOrigin
impl TurnOrigin
Sourcepub fn from_turn_id(turn_id: &str) -> Self
pub fn from_turn_id(turn_id: &str) -> Self
Read from the turn id the turn was started under.
Trait Implementations§
Source§impl Clone for TurnOrigin
impl Clone for TurnOrigin
impl Copy for TurnOrigin
Source§impl Debug for TurnOrigin
impl Debug for TurnOrigin
Source§impl Default for TurnOrigin
impl Default for TurnOrigin
impl Eq for TurnOrigin
Source§impl PartialEq for TurnOrigin
impl PartialEq for TurnOrigin
impl StructuralPartialEq for TurnOrigin
Auto Trait Implementations§
impl Forget for TurnOrigin
impl Freeze for TurnOrigin
impl Move for TurnOrigin
impl RefUnwindSafe for TurnOrigin
impl Send for TurnOrigin
impl Sync for TurnOrigin
impl Unpin for TurnOrigin
impl UnsafeUnpin for TurnOrigin
impl UnwindSafe for TurnOrigin
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