pub struct TypeConsistency {
pub kind: TypeConsistencyKind,
pub ignore_sequence_bounds: bool,
pub ignore_string_bounds: bool,
pub ignore_member_names: bool,
pub prevent_type_widening: bool,
pub force_type_validation: bool,
}Expand description
TypeConsistencyEnforcementQosPolicy (7.6.3.4), a policy of readers.
Fields§
§kind: TypeConsistencyKindWhether the types may differ.
ignore_sequence_bounds: boolIgnore the bounds of sequences and maps (default true).
ignore_string_bounds: boolIgnore the bounds of strings (default true).
ignore_member_names: boolMatch members by ID only, not also by name (default false).
prevent_type_widening: boolRefuse a writer type with non-optional members the reader’s type does not have (default false).
force_type_validation: boolDo not match on type names alone when a side gives no type information (default false).
Implementations§
Source§impl TypeConsistency
impl TypeConsistency
Sourcepub const NOT_ANNOUNCED: TypeConsistency
pub const NOT_ANNOUNCED: TypeConsistency
What a reader that does not announce the policy is taken to have:
DISALLOW_TYPE_COERCION (7.6.3.4.1).
Sourcepub fn effective(&self) -> TypeConsistency
pub fn effective(&self) -> TypeConsistency
The options in effect: with DISALLOW_TYPE_COERCION, as though
prevent_type_widening were true and the ignore_* false.
Trait Implementations§
Source§impl Clone for TypeConsistency
impl Clone for TypeConsistency
Source§fn clone(&self) -> TypeConsistency
fn clone(&self) -> TypeConsistency
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 TypeConsistency
Source§impl Debug for TypeConsistency
impl Debug for TypeConsistency
Source§impl Default for TypeConsistency
impl Default for TypeConsistency
Source§fn default() -> TypeConsistency
fn default() -> TypeConsistency
Returns the “default value” for a type. Read more
impl Eq for TypeConsistency
Source§impl Hash for TypeConsistency
impl Hash for TypeConsistency
Source§impl PartialEq for TypeConsistency
impl PartialEq for TypeConsistency
impl StructuralPartialEq for TypeConsistency
Auto Trait Implementations§
impl Forget for TypeConsistency
impl Freeze for TypeConsistency
impl Move for TypeConsistency
impl RefUnwindSafe for TypeConsistency
impl Send for TypeConsistency
impl Sync for TypeConsistency
impl Unpin for TypeConsistency
impl UnsafeUnpin for TypeConsistency
impl UnwindSafe for TypeConsistency
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