pub struct CommandAuthority {
pub decision_origin: DecisionOrigin,
pub seat_id: Option<String>,
pub permission_profile_id: Option<String>,
pub command_subject: Option<EntityRef>,
}Fields§
§decision_origin: DecisionOrigin§seat_id: Option<String>§permission_profile_id: Option<String>§command_subject: Option<EntityRef>Implementations§
Source§impl CommandAuthority
impl CommandAuthority
pub const fn for_actor(actor: PersonId) -> CommandAuthority
pub fn no_responsible_actor(reason: impl Into<String>) -> CommandAuthority
Trait Implementations§
Source§impl Clone for CommandAuthority
impl Clone for CommandAuthority
Source§fn clone(&self) -> CommandAuthority
fn clone(&self) -> CommandAuthority
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 moreSource§impl Debug for CommandAuthority
impl Debug for CommandAuthority
Source§impl<'de> Deserialize<'de> for CommandAuthority
impl<'de> Deserialize<'de> for CommandAuthority
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandAuthority, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandAuthority, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommandAuthority
Source§impl PartialEq for CommandAuthority
impl PartialEq for CommandAuthority
Source§impl Serialize for CommandAuthority
impl Serialize for CommandAuthority
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CommandAuthority
Auto Trait Implementations§
impl Freeze for CommandAuthority
impl RefUnwindSafe for CommandAuthority
impl Send for CommandAuthority
impl Sync for CommandAuthority
impl Unpin for CommandAuthority
impl UnsafeUnpin for CommandAuthority
impl UnwindSafe for CommandAuthority
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