ViewContract
struct · ferroui-reactiveui · v0.5.0
struct ViewContract
The contract a view is registered under, so that one view model has a view per contract
(ViewContractAttribute): an option of a view registration
(ViewRegistrationOptions).
Deviation (DEVIATIONS.md, ReactiveUI): upstream's attributes on a view class are read by the
source generator that builds the view dispatch; here they are plain data given to
ViewRegistrations.
Members
new
fn new(contract: impl Into<String>) -> Self
The contract contract (ViewContractAttribute(string)).
contract
fn contract(self: &Self) -> &str
The contract to resolve the view under (Contract).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCloneDebugStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.