Skip to main content

encode_props

Function encode_props 

Source
pub fn encode_props<P: PageProps>(
    module: &IrModule,
    props: &P,
    route: &str,
) -> Result<Value, PropsError>
Expand description

Encode only declared fields after checking assignability. A typed page handle may cache bind metadata, but value validation always uses its current module.