pub struct RequestPrincipal {
pub actor_id: Option<String>,
pub source: String,
}Fields§
§actor_id: Option<String>§source: StringImplementations§
Source§impl RequestPrincipal
impl RequestPrincipal
pub fn anonymous() -> RequestPrincipal
Trait Implementations§
Source§impl Clone for RequestPrincipal
impl Clone for RequestPrincipal
Source§fn clone(&self) -> RequestPrincipal
fn clone(&self) -> RequestPrincipal
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestPrincipal
impl Debug for RequestPrincipal
Source§impl<'de> Deserialize<'de> for RequestPrincipal
impl<'de> Deserialize<'de> for RequestPrincipal
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestPrincipal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestPrincipal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RequestPrincipal
impl PartialEq for RequestPrincipal
Source§impl Serialize for RequestPrincipal
impl Serialize for RequestPrincipal
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 Eq for RequestPrincipal
impl StructuralPartialEq for RequestPrincipal
Auto Trait Implementations§
impl Freeze for RequestPrincipal
impl RefUnwindSafe for RequestPrincipal
impl Send for RequestPrincipal
impl Sync for RequestPrincipal
impl Unpin for RequestPrincipal
impl UnsafeUnpin for RequestPrincipal
impl UnwindSafe for RequestPrincipal
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