vectie/bunnia/core does not have a README file

    Attr

    pub struct Attr {
    name : String
    value : String
    } derive(Eq,
    Debug
    )

    impl Show for Attr

    EventBinding

    pub struct EventBinding {
    event : String
    message : String
    } derive(Eq,
    Debug
    )

    Node

    pub struct Node {
    kind : String
    key : String
    attrs : Array[Attr]
    events : Array[EventBinding]
    children : Array[Node]
    text : String
    list_total_count : Int
    list_visible_count : Int
    } derive(Eq,
    Debug
    )

    impl Show for Node

    Patch

    pub struct Patch {
    kind : PatchKind
    path : String
    value_json : String
    estimated_bytes : Int
    } derive(Eq,
    Debug
    )

    PatchBudget

    pub struct PatchBudget {
    max_patches : Int
    max_patch_bytes : Int
    } derive(Eq,
    Debug
    )

    PatchKind

    pub(all) enum PatchKind {
    Set
    Append
    Remove
    } derive(Eq,
    Debug
    )

    PatchPlan

    pub struct PatchPlan {
    patches : Array[Patch]
    total_estimated_bytes : Int
    diagnostics : Array[String]
    summary : String
    } derive(Eq,
    Debug
    )

    Platform

    pub(all) enum Platform {
    Wechat
    Alipay
    TikTok
    } derive(Eq,
    Debug
    )

    impl Show for Platform

    PlatformAdapter

    pub struct PlatformAdapter {
    platform : Platform
    id : String
    page_component : String
    tap_event : String
    component_prefix : String
    app_launch_lifecycle : String
    page_load_lifecycle : String
    page_ready_lifecycle : String
    request_api : String
    supports_canvas : Bool
    supports_cloud : Bool
    supports_stream : Bool
    } derive(Eq,
    Debug
    )

    RenderBudget

    pub struct RenderBudget {
    max_nodes : Int
    max_depth : Int
    max_events : Int
    max_initial_data_bytes : Int
    max_unwindowed_list_children : Int
    max_scene_markers : Int
    max_scene_regions : Int
    max_scene_assets : Int
    max_degraded_scenes : Int
    } derive(Eq,
    Debug
    )

    RenderPlan

    pub struct RenderPlan {
    platform : Platform
    adapter : PlatformAdapter
    root_kind : String
    node_count : Int
    depth : Int
    windowed_list_count : Int
    list_total_count : Int
    list_visible_count : Int
    unwindowed_list_child_count : Int
    unkeyed_list_child_count : Int
    duplicate_list_key_count : Int
    canvas_count : Int
    unsupported_canvas_count : Int
    scene_count : Int
    scene_marker_count : Int
    scene_visible_marker_count : Int
    scene_region_count : Int
    scene_visible_region_count : Int
    scene_asset_count : Int
    degraded_scene_count : Int
    component_kinds : Array[String]
    event_messages : Array[String]
    diagnostics : Array[String]
    summary : String
    } derive(Eq,
    Debug
    )

    impl Show for RenderPlan

    SurfaceStatus

    pub struct SurfaceStatus {
    kind : SurfaceStatusKind
    label : String
    detail : String
    action_message : String
    } derive(Eq,
    Debug
    )

    SurfaceStatusKind

    pub(all) enum SurfaceStatusKind {
    SurfaceLoading
    SurfaceReady
    SurfaceStale
    SurfaceError
    SurfaceRetry
    SurfaceCancelled
    SurfaceDegraded
    } derive(Eq,
    Debug
    )

    adapter

    fn adapter(platform : Platform) -> PlatformAdapter

    append_json

    fn append_json(path : String, value_json : String) -> Patch

    attr

    fn attr(name : String, value : String) -> Attr

    button

    fn button(label : String, message : String) -> Node

    canvas

    fn canvas(canvas_id : String) -> Node

    class_name

    fn class_name(value : String) -> Attr

    custom

    fn custom(kind : String, attrs : Array[Attr], children : Array[Node]) -> Node

    data

    fn data(name : String, value : String) -> Attr

    default_patch_budget

    fn default_patch_budget() -> PatchBudget

    default_render_budget

    fn default_render_budget() -> RenderBudget

    event

    fn event(event : String, message : String) -> EventBinding

    form

    fn form(submit_message : String, children : Array[Node]) -> Node

    fn id(value : String) -> Attr

    image

    fn image(src : String, alt : String) -> Node

    input

    fn input(name~ : String, value? : String, input_message? : String) -> Node

    keyed

    fn keyed(key : String, child : Node) -> Node

    list

    fn[Item] list(items : Array[Item], render : (Item) -> Node) -> Node

    max_depth

    fn max_depth(root : Node) -> Int

    node

    fn node(kind~ : String, key? : String, attrs? : Array[Attr], events? : Array[EventBinding], children? : Array[Node], text? : String, list_total_count? : Int, list_visible_count? : Int) -> Node

    node_count

    fn node_count(root : Node) -> Int

    page

    fn page(children : Array[Node]) -> Node

    patch_budget

    fn patch_budget(max_patches~ : Int, max_patch_bytes~ : Int) -> PatchBudget

    plan

    fn plan(root : Node, platform : Platform) -> RenderPlan

    plan_for_adapter

    fn plan_for_adapter(root : Node, adapter : PlatformAdapter) -> RenderPlan

    plan_for_adapter_with_budget

    fn plan_for_adapter_with_budget(root : Node, adapter : PlatformAdapter, budget : RenderBudget) -> RenderPlan

    plan_patches

    fn plan_patches(patches : Array[Patch]) -> PatchPlan

    plan_patches_with_budget

    fn plan_patches_with_budget(patches : Array[Patch], budget : PatchBudget) -> PatchPlan

    plan_with_budget

    fn plan_with_budget(root : Node, platform : Platform, budget : RenderBudget) -> RenderPlan

    platform_adapter

    fn platform_adapter(platform~ : Platform, id~ : String, page_component~ : String, tap_event~ : String, component_prefix? : String, app_launch_lifecycle? : String, page_load_lifecycle? : String, page_ready_lifecycle? : String, request_api? : String, supports_canvas? : Bool, supports_cloud? : Bool, supports_stream? : Bool) -> PlatformAdapter

    platform_id

    fn platform_id(platform : Platform) -> String

    platform_label

    fn platform_label(platform : Platform) -> String

    remove_path

    fn remove_path(path : String) -> Patch

    render_budget

    fn render_budget(max_nodes~ : Int, max_depth~ : Int, max_events~ : Int, max_initial_data_bytes~ : Int, max_unwindowed_list_children? : Int, max_scene_markers? : Int, max_scene_regions? : Int, max_scene_assets? : Int, max_degraded_scenes? : Int) -> RenderBudget

    scroll_view

    fn scroll_view(children : Array[Node]) -> Node

    set_json

    fn set_json(path : String, value_json : String) -> Patch

    set_string

    fn set_string(path : String, value : String) -> Patch

    supported_platforms

    fn supported_platforms() -> Array[Platform]

    surface_cancelled

    fn surface_cancelled(label? : String, detail? : String, action_message? : String) -> SurfaceStatus

    surface_degraded

    fn surface_degraded(label? : String, detail? : String, action_message? : String) -> SurfaceStatus

    surface_error

    fn surface_error(label? : String, detail? : String, action_message? : String) -> SurfaceStatus

    surface_loading

    fn surface_loading(label? : String, detail? : String) -> SurfaceStatus

    surface_ready

    fn surface_ready(label? : String, detail? : String) -> SurfaceStatus

    surface_retry

    fn surface_retry(label? : String, detail? : String, action_message? : String) -> SurfaceStatus

    surface_stale

    fn surface_stale(label? : String, detail? : String, action_message? : String) -> SurfaceStatus

    surface_status

    fn surface_status(kind~ : SurfaceStatusKind, label~ : String, detail? : String, action_message? : String) -> SurfaceStatus

    surface_status_badge

    fn surface_status_badge(status : SurfaceStatus) -> Node

    surface_status_kind_id

    fn surface_status_kind_id(kind : SurfaceStatusKind) -> String

    surface_status_overlay

    fn surface_status_overlay(status : SurfaceStatus, child : Node) -> Node

    tap

    fn tap(message : String) -> EventBinding

    text

    fn text(value : String) -> Node

    view

    fn view(children : Array[Node]) -> Node

    view_with_attrs

    fn view_with_attrs(attrs : Array[Attr], children : Array[Node]) -> Node

    when

    fn when(condition : Bool, child : Node) -> Node

    windowed_list

    fn[Item] windowed_list(items : Array[Item], total_count~ : Int, offset? : Int, render~ : (Item) -> Node) -> Node