Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct PromptBlock {
pub span_id: SpanId,
pub sequence_index: u32,
pub role: PromptRole,
pub content: String,
pub content_type: BlockContentType,
pub provenance: ProvenanceLabel,
pub sensitivity: SensitivityLabel,
pub token_metadata: Option<TokenizationMetadata>,
}
A single addressable block within the Prompt IR.
Each block carries provenance, sensitivity, and content type metadata along with an optional token count. Blocks are sequenced by sequence_index within the parent PromptIR.
span_id: SpanIdStable span identifier for this block.
sequence_index: u32Zero-based index in the prompt sequence.
role: PromptRoleConversation role of this block.
content: StringRaw content of the block.
content_type: BlockContentTypeContent type discriminant.
provenance: ProvenanceLabelOrigin of the content.
sensitivity: SensitivityLabelSensitivity classification (defaults to Public).
token_metadata: Option<TokenizationMetadata>Optional tokenization metadata.
impl Clone for PromptBlockimpl Clone for PromptBlock
clonefn clone(&self) -> PromptBlock
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for PromptBlockimpl Debug for PromptBlock
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for PromptBlockimpl<'de> Deserialize<'de> for PromptBlock
deserializefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for PromptBlockimpl PartialEq for PromptBlock
eqfn eq(&self, other: &PromptBlock) -> bool
nefn ne(&self, other: &Rhs) -> bool
impl Serialize for PromptBlockimpl Serialize for PromptBlock
serializefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for PromptBlockimpl StructuralPartialEq for PromptBlock