#[non_exhaustive]pub struct TargetScope {
pub entity: Option<String>,
pub view_id: Option<String>,
pub view_kind: Option<ViewKind>,
pub nesting: Nesting,
}Expand description
Which views an action or a controller is for. Anything left out does not narrow it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity: Option<String>Only views of this entity.
view_id: Option<String>Only the view with this id.
view_kind: Option<ViewKind>Only views of this kind.
nesting: NestingRoot or nested.
Implementations§
Source§impl TargetScope
impl TargetScope
Trait Implementations§
Source§impl Clone for TargetScope
impl Clone for TargetScope
Source§fn clone(&self) -> TargetScope
fn clone(&self) -> TargetScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetScope
impl Debug for TargetScope
Source§impl Default for TargetScope
impl Default for TargetScope
Source§fn default() -> TargetScope
fn default() -> TargetScope
Returns the “default value” for a type. Read more
impl Eq for TargetScope
Source§impl PartialEq for TargetScope
impl PartialEq for TargetScope
impl StructuralPartialEq for TargetScope
Auto Trait Implementations§
impl Freeze for TargetScope
impl RefUnwindSafe for TargetScope
impl Send for TargetScope
impl Sync for TargetScope
impl Unpin for TargetScope
impl UnsafeUnpin for TargetScope
impl UnwindSafe for TargetScope
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