pub trait CreateView: AsView {
type CreateViewType: CandidType + Default;
// Required method
fn from_create_view(view: Self::CreateViewType) -> Self;
}Expand description
CreateView
Required Associated Types§
Sourcetype CreateViewType: CandidType + Default
type CreateViewType: CandidType + Default
Payload accepted when creating this value.
This is often equal to ViewType, but may differ
(e.g. Option
Required Methods§
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.