pub struct PersonId { /* private fields */ }Expand description
A person a search found, whose items can be listed:
<namespace>:<key>.
Implementations§
Source§impl PersonId
impl PersonId
Sourcepub fn new(
namespace: Namespace,
key: impl Into<String>,
) -> Result<Self, IdError>
pub fn new( namespace: Namespace, key: impl Into<String>, ) -> Result<Self, IdError>
Build an ID. The server does this; clients only receive them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PersonId
impl<'de> Deserialize<'de> for PersonId
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 Eq for PersonId
impl StructuralPartialEq for PersonId
Auto Trait Implementations§
impl Freeze for PersonId
impl RefUnwindSafe for PersonId
impl Send for PersonId
impl Sync for PersonId
impl Unpin for PersonId
impl UnsafeUnpin for PersonId
impl UnwindSafe for PersonId
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