pub enum ViewOutput {
Collection,
Single,
Keyed {
key_field: FieldPath,
},
}Expand description
Output mode for a view
Variants§
Collection
Multiple entities (list-like semantics)
Single
Single entity (state-like semantics)
Keyed
Keyed lookup by a specific field
Trait Implementations§
Source§impl Clone for ViewOutput
impl Clone for ViewOutput
Source§fn clone(&self) -> ViewOutput
fn clone(&self) -> ViewOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewOutput
impl Debug for ViewOutput
Source§impl Default for ViewOutput
impl Default for ViewOutput
Source§fn default() -> ViewOutput
fn default() -> ViewOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViewOutput
impl<'de> Deserialize<'de> for ViewOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ViewOutput
impl PartialEq for ViewOutput
Source§impl Serialize for ViewOutput
impl Serialize for ViewOutput
impl StructuralPartialEq for ViewOutput
Auto Trait Implementations§
impl Freeze for ViewOutput
impl RefUnwindSafe for ViewOutput
impl Send for ViewOutput
impl Sync for ViewOutput
impl Unpin for ViewOutput
impl UnwindSafe for ViewOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more