pub struct ValidationConfig {
pub allow_orphan_components: bool,
pub allow_dangling_references: bool,
pub allow_missing_root: bool,
}Expand description
Tolerance flags for component validation. Defaults (= STRICT) reject orphans, dangling references, and a missing root.
Fields§
§allow_orphan_components: boolIf true, components unreachable from root are allowed (incremental updates, partial trees).
allow_dangling_references: boolIf true, references to component IDs not present in this batch are allowed (the referenced component may already live on the client).
allow_missing_root: boolIf true, a missing root component is allowed (incremental update
without a createSurface).
Implementations§
Trait Implementations§
Source§impl Clone for ValidationConfig
impl Clone for ValidationConfig
Source§fn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
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 moreimpl Copy for ValidationConfig
Source§impl Debug for ValidationConfig
impl Debug for ValidationConfig
Source§impl Default for ValidationConfig
impl Default for ValidationConfig
Source§fn default() -> ValidationConfig
fn default() -> ValidationConfig
Returns the “default value” for a type. Read more
impl Eq for ValidationConfig
Source§impl PartialEq for ValidationConfig
impl PartialEq for ValidationConfig
Source§fn eq(&self, other: &ValidationConfig) -> bool
fn eq(&self, other: &ValidationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValidationConfig
Auto Trait Implementations§
impl Freeze for ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnsafeUnpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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