pub enum UserIdRef<'a> {
Uuid(Uuid),
Symbolic(&'a str),
None,
}Expand description
Reference type for the user_id field. Accepts a Uuid, a
&str, or Option<Uuid> via the From impls below; callers
rarely construct this directly.
The chosen variant is serialized to a string in the wire payload:
UserIdRef::Uuid becomes the canonical hyphenated UUID,
UserIdRef::Symbolic passes through as-is, and
UserIdRef::None becomes the empty string.
Variants§
Uuid(Uuid)
A real cognee User.id.
Symbolic(&'a str)
A symbolic identifier (e.g. "sdk", "anonymous").
None
No user attached.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UserIdRef<'a>
impl<'a> RefUnwindSafe for UserIdRef<'a>
impl<'a> Send for UserIdRef<'a>
impl<'a> Sync for UserIdRef<'a>
impl<'a> Unpin for UserIdRef<'a>
impl<'a> UnsafeUnpin for UserIdRef<'a>
impl<'a> UnwindSafe for UserIdRef<'a>
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