pub struct Principal {
pub system: Option<System>,
pub user: Option<User>,
pub team: Option<Team>,
pub on_behalf_of: Option<Box<Principal>>,
}Expand description
A Principal is an entity that has authority over this Task.
Fields§
§system: Option<System>§user: Option<User>§team: Option<Team>§on_behalf_of: Option<Box<Principal>>The Principal this Principal is acting on behalf of.
Likely only populated once in the nesting (i.e. the “on_behalf_of” Principal would not have another “on_behalf_of” in most cases).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Principal
impl<'de> Deserialize<'de> for Principal
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
impl StructuralPartialEq for Principal
Auto Trait Implementations§
impl Freeze for Principal
impl RefUnwindSafe for Principal
impl Send for Principal
impl Sync for Principal
impl Unpin for Principal
impl UnwindSafe for Principal
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