pub struct UserBuilder { /* private fields */ }Expand description
用户上下文构建器 (Builder Pattern)
职责:
构造 UserContext 对象,支持链式调用。
Implementations§
Source§impl UserBuilder
impl UserBuilder
Sourcepub fn build(self) -> UserContext
pub fn build(self) -> UserContext
构建 UserContext
结果包含序列化后的 metadata JSON 字符串。
Auto Trait Implementations§
impl Freeze for UserBuilder
impl RefUnwindSafe for UserBuilder
impl Send for UserBuilder
impl Sync for UserBuilder
impl Unpin for UserBuilder
impl UnwindSafe for UserBuilder
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