pub struct WebUiFragmentBoundary {
pub declaration_id: u32,
pub owner_fragment_id: String,
pub name: String,
pub key: Option<String>,
pub may_repeat: bool,
pub phase: i32,
}Expand description
Compile-time streaming boundary declaration, written as an inline tape.
A declaration emits a start marker and an end marker into its owner’s fragment record, with the body fragments in between. Ordinary rendering therefore walks the body without any extra record lookup, and streaming suspends and resumes inside the record it is already traversing.
A declaration can produce multiple response-local occurrences through components, conditions, loops, and routes. Runtime occurrence IDs are therefore assigned later by the handler and are not stored here.
Fields§
§declaration_id: u32Stable build-local declaration identity. Shared by the start/end pair.
owner_fragment_id: StringEntry or reusable component template that authored this declaration.
name: StringFree-form authored name, unique only within owner_fragment_id.
key: Option<String>Optional authored key expression preserved verbatim for handler evaluation.
may_repeat: boolConservative graph result: this declaration may produce multiple runtime
occurrences through repeated component callsites. A <for> repeat can no
longer contribute: the build rejects every boundary a repeat body reaches
(boundary-in-repeat), because a repeat iteration cannot suspend.
phase: i32Whether this fragment opens or closes the declaration’s body.
Implementations§
Source§impl WebUiFragmentBoundary
impl WebUiFragmentBoundary
Sourcepub fn phase(&self) -> BoundaryPhase
pub fn phase(&self) -> BoundaryPhase
Returns the enum value of phase, or the default if the field is set to an invalid enum value.
Sourcepub fn set_phase(&mut self, value: BoundaryPhase)
pub fn set_phase(&mut self, value: BoundaryPhase)
Sets phase to the provided enum value.
Trait Implementations§
Source§impl Clone for WebUiFragmentBoundary
impl Clone for WebUiFragmentBoundary
Source§impl Debug for WebUiFragmentBoundary
impl Debug for WebUiFragmentBoundary
Source§impl Default for WebUiFragmentBoundary
impl Default for WebUiFragmentBoundary
Source§impl<'de> Deserialize<'de> for WebUiFragmentBoundary
impl<'de> Deserialize<'de> for WebUiFragmentBoundary
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>,
impl Eq for WebUiFragmentBoundary
Source§impl Hash for WebUiFragmentBoundary
impl Hash for WebUiFragmentBoundary
Source§impl Message for WebUiFragmentBoundary
impl Message for WebUiFragmentBoundary
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.