pub struct FrontendBlock {
pub id: Option<String>,
pub group: Option<String>,
pub update: FrontendBlockUpdate,
pub state: FrontendBlockState,
pub role: FrontendBlockRole,
pub title: String,
pub text: String,
pub symbol: Option<FrontendSymbol>,
pub files: Vec<SessionFileReference>,
pub format: FrontendBlockFormat,
pub tone: FrontendTone,
}Expand description
Capability-rendered transcript content with frontend-neutral formatting and tone.
Fields§
§id: Option<String>§group: Option<String>§update: FrontendBlockUpdate§state: FrontendBlockState§role: FrontendBlockRole§title: StringCompact, standalone row label. Frontends must not derive this from text.
text: StringExpandable body or artifact content.
symbol: Option<FrontendSymbol>§files: Vec<SessionFileReference>Downloadable files owned by the session rendering this block.
format: FrontendBlockFormat§tone: FrontendToneTrait Implementations§
Source§impl Clone for FrontendBlock
impl Clone for FrontendBlock
Source§fn clone(&self) -> FrontendBlock
fn clone(&self) -> FrontendBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrontendBlock
impl Debug for FrontendBlock
Source§impl<'de> Deserialize<'de> for FrontendBlock
impl<'de> Deserialize<'de> for FrontendBlock
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
impl Eq for FrontendBlock
Source§impl PartialEq for FrontendBlock
impl PartialEq for FrontendBlock
Source§impl Serialize for FrontendBlock
impl Serialize for FrontendBlock
impl StructuralPartialEq for FrontendBlock
Auto Trait Implementations§
impl Freeze for FrontendBlock
impl RefUnwindSafe for FrontendBlock
impl Send for FrontendBlock
impl Sync for FrontendBlock
impl Unpin for FrontendBlock
impl UnsafeUnpin for FrontendBlock
impl UnwindSafe for FrontendBlock
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