pub trait UpdateView: AsView {
type UpdateViewType: CandidType + Default;
// Required method
fn merge(
&mut self,
patch: Self::UpdateViewType,
) -> Result<(), MergePatchError>;
}Expand description
UpdateView
Required Associated Types§
Sourcetype UpdateViewType: CandidType + Default
type UpdateViewType: CandidType + Default
A view payload that may be applied to Self.
Required Methods§
fn merge(&mut self, patch: Self::UpdateViewType) -> Result<(), MergePatchError>
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.