Skip to main content

FastV3ParserPlugin

Struct FastV3ParserPlugin 

Source
pub struct FastV3ParserPlugin { /* private fields */ }
Expand description

FAST parser plugin pinned to FAST major version 3.

Implements the ParserPlugin trait for FAST 3 applications:

  • Filters FAST-specific runtime binding attributes (@click, f-ref, etc.)
  • Tracks components encountered during parsing
  • Returns <f-template> artifacts with converted FAST syntax after parsing
  • Emits binding attribute counts as Plugin protocol fragment data

Implementations§

Source§

impl FastV3ParserPlugin

Source

pub fn new() -> Self

Create a new FAST 3 parser plugin.

Source

pub fn take_component_templates(&self) -> Vec<ComponentTemplateArtifact>

Take the individual component f-template strings, keyed by tag name.

Each value is a complete <f-template name="tag-name">...</f-template> string ready to be appended to a document. This is used by the JSON partial render endpoint to send only the templates the client needs.

Trait Implementations§

Source§

impl Default for FastV3ParserPlugin

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl ParserPlugin for FastV3ParserPlugin

Source§

fn component_processing(&self) -> ComponentProcessing

Return static component-processing behavior.
Source§

fn component_built(&mut self, context: ComponentBuildContext<'_>) -> Result<()>

Called after a component template is fully built. Read more
Source§

fn process_attribute( &mut self, context: AttributeContext<'_>, ) -> AttributeAction

Process one authored attribute.
Source§

fn finish_opening_tag( &mut self, context: ElementStartContext<'_>, ) -> Option<Vec<u8>>

Called after all attributes on an opening tag have been processed. Returns optional opaque bytes to emit as a Plugin protocol fragment.
Source§

fn finish(self: Box<Self>) -> Result<ParserPluginArtifacts>

Complete the build and return any captured artifacts. Read more
Source§

fn configure_parser(&mut self, _options: &ParserOptions)

Configure the plugin before parsing or component registration begins.
Source§

fn begin_fragment(&mut self, _context: FragmentContext<'_>)

Called before parsing begins for a fragment. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.