ViewRegistrationOptions
struct · ferroui-reactiveui · v0.5.0
struct ViewRegistrationOptions
The options of a view registration: upstream's attributes of a view class, as data.
Members
contract
contract: Option<super::ViewContract>
The contract the view is registered under ([ViewContract("...")]); None for the default.
single_instance
single_instance: Option<super::SingleInstanceView>
Whether the view is created once and reused ([SingleInstanceView]).
exclude
exclude: Option<super::ExcludeFromViewRegistration>
Whether the view is left out of the dispatch ([ExcludeFromViewRegistration]).
new
fn new() -> Self
No option: the default contract, a new view for each resolution.
with_contract
fn with_contract(self: Self, contract: ViewContract) -> Self
The options with contract.
with_single_instance
fn with_single_instance(self: Self) -> Self
The options with SingleInstanceView.
with_exclude
fn with_exclude(self: Self) -> Self
The options with ExcludeFromViewRegistration.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCloneDebugDefaultStructuralPartialEqPartialEqEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.