pub struct System { /* private fields */ }Expand description
A system-authored transcript record.
subtype is a producer-owned free-form label; core assigns it no meaning.
Empty subtype and text values remain representable at this leaf boundary.
ⓘ
use reef_core::transcript::item;
let _forged = item::System {
subtype: String::new(), text: String::new(), visibility: item::ModelVisibility::Visible,
};Implementations§
Source§impl System
impl System
Sourcepub const fn new(
subtype: String,
text: String,
visibility: ModelVisibility,
) -> Self
pub const fn new( subtype: String, text: String, visibility: ModelVisibility, ) -> Self
Creates a system record without interpreting its subtype or text.
Sourcepub const fn visibility(&self) -> ModelVisibility
pub const fn visibility(&self) -> ModelVisibility
Returns this record’s model visibility.
Trait Implementations§
Source§impl Debug for System
impl Debug for System
Source§fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
Prints the subtype in full and sizes the instruction.
The two strings have different provenance even though they sit side by
side: subtype is a producer-owned label that selects a record class,
while text is a system instruction on its way to the model.
Source§impl<'de> Deserialize<'de> for System
impl<'de> Deserialize<'de> for System
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 System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnsafeUnpin for System
impl UnwindSafe for System
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