pub struct ClosedSelector {
pub file: String,
pub name: String,
pub wire: WireEnum,
pub error: ErrorMapping,
pub non_exhaustive: bool,
pub variants: Vec<SelectorVariant>,
pub normalizations: Vec<Normalization>,
pub rejected: Vec<String>,
pub legacy: Vec<LegacySelector>,
pub identifier_error: Option<ErrorMapping>,
}Expand description
Closed native enum; zero and unknown values always fail conversion.
Fields§
§file: StringBare sibling .rs filename, included explicitly by the application.
name: StringNative Rust enum name.
wire: WireEnumAuthoritative wire enum.
error: ErrorMappingFixed error for unspecified, rejected and unknown inputs.
non_exhaustive: boolPreserve an extensible public Rust matching surface.
variants: Vec<SelectorVariant>Canonical cases in public ALL order.
normalizations: Vec<Normalization>Deprecated inputs accepted as canonical values.
rejected: Vec<String>Nonzero cases intentionally unsupported by this adapter.
legacy: Vec<LegacySelector>Additional checked conversions from legacy wire enums.
identifier_error: Option<ErrorMapping>Error for from_identifier; required if identities are supplied.
Trait Implementations§
Source§impl Clone for ClosedSelector
impl Clone for ClosedSelector
Source§impl Debug for ClosedSelector
impl Debug for ClosedSelector
Source§impl<'de> Deserialize<'de> for ClosedSelector
impl<'de> Deserialize<'de> for ClosedSelector
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 TryFrom<&NativeClosedSelector> for ClosedSelector
impl TryFrom<&NativeClosedSelector> for ClosedSelector
Source§type Error = AdapterError
type Error = AdapterError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for ClosedSelector
impl Freeze for ClosedSelector
impl Move for ClosedSelector
impl RefUnwindSafe for ClosedSelector
impl Send for ClosedSelector
impl Sync for ClosedSelector
impl Unpin for ClosedSelector
impl UnsafeUnpin for ClosedSelector
impl UnwindSafe for ClosedSelector
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