pub struct ContextSection {
pub label: String,
pub content: String,
pub priority: usize,
}Expand description
A single named section within a PersistentContext.
Sections are rendered in ascending priority order (lower number = higher
priority = rendered first).
Fields§
§label: StringHuman-readable label for this section (used as a heading).
content: StringThe text content of this section.
priority: usizeRender order — lower values appear first.
Trait Implementations§
Source§impl Clone for ContextSection
impl Clone for ContextSection
Source§fn clone(&self) -> ContextSection
fn clone(&self) -> ContextSection
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextSection
impl RefUnwindSafe for ContextSection
impl Send for ContextSection
impl Sync for ContextSection
impl Unpin for ContextSection
impl UnsafeUnpin for ContextSection
impl UnwindSafe for ContextSection
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