pub struct MaterialOverview {
pub id: MaterialId,
pub title: Option<String>,
pub description: Option<String>,
pub kind: MaterialOverviewKind,
}Expand description
Overview of a declared material, carried by
UiSignal::CeremonyOverview so the live UI can render the material
list. In-flight only: the ceremony YAML is the source of truth for
material metadata, so this never reaches the transcript.
Fields§
§id: MaterialIdMaterial identifier.
title: Option<String>Optional title; falls back to id for display.
description: Option<String>Optional human-readable description.
kind: MaterialOverviewKindKind of material (digital file or physical item).
Implementations§
Source§impl MaterialOverview
impl MaterialOverview
Sourcepub fn display_title(&self) -> &str
pub fn display_title(&self) -> &str
Display name: the optional title, falling back to the material id.
Mirrors Material::display_name for the channel-side shape.
Sourcepub fn from_material(material: &Material) -> Self
pub fn from_material(material: &Material) -> Self
Project a resolved IR Material onto the overview shape sent to
frontends.
Trait Implementations§
Source§impl Clone for MaterialOverview
impl Clone for MaterialOverview
Source§fn clone(&self) -> MaterialOverview
fn clone(&self) -> MaterialOverview
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 moreAuto Trait Implementations§
impl Freeze for MaterialOverview
impl RefUnwindSafe for MaterialOverview
impl Send for MaterialOverview
impl Sync for MaterialOverview
impl Unpin for MaterialOverview
impl UnsafeUnpin for MaterialOverview
impl UnwindSafe for MaterialOverview
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