pub enum SystemParam {
Text(String),
Blocks(Vec<TextBlock>),
}Expand description
The top-level system parameter: a bare string or text blocks.
Grok’s rule (ported): a single block without cache_control collapses to
Text; otherwise use Blocks (plan §4.3).
Variants§
Text(String)
Plain-text shorthand.
Blocks(Vec<TextBlock>)
Text blocks (each may carry a cache marker).
Trait Implementations§
Source§impl Clone for SystemParam
impl Clone for SystemParam
Source§fn clone(&self) -> SystemParam
fn clone(&self) -> SystemParam
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 SystemParam
impl Debug for SystemParam
Source§impl<'de> Deserialize<'de> for SystemParam
impl<'de> Deserialize<'de> for SystemParam
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 SystemParam
impl RefUnwindSafe for SystemParam
impl Send for SystemParam
impl Sync for SystemParam
impl Unpin for SystemParam
impl UnsafeUnpin for SystemParam
impl UnwindSafe for SystemParam
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