Skip to main content

CreateView

Trait CreateView 

Source
pub trait CreateView: AsView {
    type CreateViewType: CandidType + Default;

    // Required method
    fn from_create_view(view: Self::CreateViewType) -> Self;
}
Expand description

CreateView

Required Associated Types§

Source

type CreateViewType: CandidType + Default

Payload accepted when creating this value.

This is often equal to ViewType, but may differ (e.g. Option, defaults, omissions).

Required Methods§

Source

fn from_create_view(view: Self::CreateViewType) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§