#[repr(i32)]pub enum ActorOrigin {
Unspecified = 0,
Any = 1,
Human = 2,
Agent = 3,
}Expand description
The human/agent split a ChannelRule keys on, matched against a notification’s actor_agent_id: HUMAN matches an empty actor_agent_id, AGENT matches a non-empty one, ANY matches either.
Variants§
Implementations§
Source§impl ActorOrigin
impl ActorOrigin
Source§impl ActorOrigin
impl ActorOrigin
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ActorOrigin
impl Clone for ActorOrigin
Source§fn clone(&self) -> ActorOrigin
fn clone(&self) -> ActorOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActorOrigin
Source§impl Debug for ActorOrigin
impl Debug for ActorOrigin
Source§impl Default for ActorOrigin
impl Default for ActorOrigin
Source§fn default() -> ActorOrigin
fn default() -> ActorOrigin
Returns the “default value” for a type. Read more
impl Eq for ActorOrigin
Source§impl From<ActorOrigin> for i32
impl From<ActorOrigin> for i32
Source§fn from(value: ActorOrigin) -> i32
fn from(value: ActorOrigin) -> i32
Converts to this type from the input type.
Source§impl Hash for ActorOrigin
impl Hash for ActorOrigin
Source§impl Ord for ActorOrigin
impl Ord for ActorOrigin
Source§fn cmp(&self, other: &ActorOrigin) -> Ordering
fn cmp(&self, other: &ActorOrigin) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ActorOrigin
impl PartialEq for ActorOrigin
Source§impl PartialOrd for ActorOrigin
impl PartialOrd for ActorOrigin
impl StructuralPartialEq for ActorOrigin
Source§impl TryFrom<i32> for ActorOrigin
impl TryFrom<i32> for ActorOrigin
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ActorOrigin, UnknownEnumValue>
fn try_from(value: i32) -> Result<ActorOrigin, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ActorOrigin
impl RefUnwindSafe for ActorOrigin
impl Send for ActorOrigin
impl Sync for ActorOrigin
impl Unpin for ActorOrigin
impl UnsafeUnpin for ActorOrigin
impl UnwindSafe for ActorOrigin
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