#[non_exhaustive]pub struct UserIdentity {
pub user_id: String,
pub user_name: Option<String>,
pub user_data: Option<Map<String, Value>>,
}Expand description
Who calls the tools, as the identify hook reports it.
use agentcat_sdk::UserIdentity;
let user = UserIdentity::new("user-42").user_name("Ada");Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user_id: StringThe caller’s id in the customer’s system.
user_name: Option<String>The caller’s display name.
user_data: Option<Map<String, Value>>Any other data about the caller.
Implementations§
Trait Implementations§
Source§impl Clone for UserIdentity
impl Clone for UserIdentity
Source§impl Debug for UserIdentity
impl Debug for UserIdentity
Source§impl PartialEq for UserIdentity
impl PartialEq for UserIdentity
impl StructuralPartialEq for UserIdentity
Auto Trait Implementations§
impl Freeze for UserIdentity
impl RefUnwindSafe for UserIdentity
impl Send for UserIdentity
impl Sync for UserIdentity
impl Unpin for UserIdentity
impl UnsafeUnpin for UserIdentity
impl UnwindSafe for UserIdentity
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