pub struct User { /* private fields */ }Expand description
A user-authored transcript record.
ⓘ
use reef_core::transcript::item;
let _forged = item::User { parts: vec![], visibility: item::ModelVisibility::Visible };Implementations§
Source§impl User
impl User
Sourcepub const fn new(parts: Vec<Part>, visibility: ModelVisibility) -> Self
pub const fn new(parts: Vec<Part>, visibility: ModelVisibility) -> Self
Creates a user record while retaining part order.
Sourcepub const fn visibility(&self) -> ModelVisibility
pub const fn visibility(&self) -> ModelVisibility
Returns this record’s model visibility.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
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