Structs§
- ArcSlice
Wrapper - Fixture for
Arc<[T]>test. - ArcStr
Wrapper - Fixture for
Arc<str>test. - ArcWrapper
- Fixture for
Arc<T>test. - Array
Wrapper - Fixture for fixed-size array test.
- Bool
Wrapper - Fixture for boolean scalar test.
- BoxStr
Wrapper - Fixture for
Box<str>test. - BoxWrapper
- Fixture for
Box<T>test. - Bytes
Wrapper - Fixture for
Vec<u8>binary data test. - Camel
Case Struct - Fixture for
#[facet(rename_all = "camelCase")]test. - Case
Spec - Specification returned by each trait method.
- Char
Wrapper - Fixture for char scalar test.
- CowStr
Wrapper - Fixture for Cow<’static, str> test.
- Deny
Unknown Struct - Fixture for
#[facet(deny_unknown_fields)]test. - Empty
Tuple Wrapper - Fixture for empty tuple test.
- Expects
Array - Fixture for structure mismatch error (object to array).
- Expects
Integer - Fixture for type mismatch error (string to int).
- Flatten
Auth Password - Password auth data for multiple flattened enums test.
- Flatten
Auth Token - Token auth data for multiple flattened enums test.
- Flatten
Inner - Inner struct for flatten test.
- Flatten
Level1 - Top level for three-level flatten test.
- Flatten
Level2 - Middle level for three-level flatten test.
- Flatten
Level3 - Deepest level for three-level flatten test.
- Flatten
Metadata - Metadata struct for flatten optional tests.
- Flatten
Multiple Enums - Container with two different flattened enums.
- Flatten
Optional None - Struct for flatten with optional flattened field (None case).
- Flatten
Optional Some - Struct for flatten with optional flattened field (Some case).
- Flatten
Outer - Outer struct with
#[facet(flatten)]. - Flatten
Overlapping - Container with two flattened structs that have overlapping field names.
- Flatten
PartA - First flattened struct with overlapping fields.
- Flatten
PartB - Second flattened struct with overlapping fields.
- Flatten
Transport Tcp - TCP transport data for multiple flattened enums test.
- Flatten
Transport Unix - Unix transport data for multiple flattened enums test.
- Float
Types - Fixture for float scalar test.
- Float
Types Scientific - Fixture for scientific notation float test.
- Hash
SetWrapper - Fixture for HashSet test.
- Inner
Transparent - Inner transparent wrapper.
- IntAs
String - Proxy type that wraps a string for serialization.
- Integer
Types - Fixture for integer scalar test.
- Integer
Types16 - Fixture for 16-bit integer test.
- Integer
Types128 - Fixture for 128-bit integer test.
- Integer
Types Size - Fixture for pointer-sized integer test.
- MapWrapper
- Fixture for BTreeMap test.
- Nested
Child - Nested
Parent - Nested
Tuple Wrapper - Fixture for nested tuple test.
- Nested
VecWrapper - Fixture for nested Vec test.
- Newtype
String - Newtype wrapper around String.
- Newtype
String Wrapper - Fixture containing newtype String.
- Newtype
U64 - Newtype wrapper around u64.
- Newtype
U64Wrapper - Fixture containing newtype u64.
- NonZero
Types - Fixture for NonZero integer test.
- NonZero
Types Extended - Fixture for extended NonZero integer test.
- Opaque
Proxy Option Wrapper - Wrapper struct with an optional opaque field using proxy.
- Opaque
Proxy Wrapper - Wrapper struct with an opaque field using proxy.
- Opaque
Type - An opaque type that does NOT implement Facet.
This tests the
#[facet(opaque, proxy = ...)]pattern. - Opaque
Type Proxy - Proxy type for OpaqueType that implements Facet.
- Outer
Transparent - Outer transparent wrapper wrapping another transparent type.
- Proxy
Field Level - Struct with field-level proxy (tests field-level vs container-level).
- Proxy
Int - Target type that uses the proxy for serialization.
- Proxy
With Option - Struct with proxy wrapping
Option<T>. - RcStr
Wrapper - Fixture for
Rc<str>test. - RcWrapper
- Fixture for
Rc<T>test. - Rename
AllKebab - Fixture for
#[facet(rename_all = "kebab-case")]test. - Rename
AllScreaming - Fixture for
#[facet(rename_all = "SCREAMING_SNAKE_CASE")]test. - Rename
Special Chars - Struct with special characters in field name via rename.
- Rename
Unicode - Struct with unicode (emoji) field name via rename.
- Rename
VsAlias - Fixture for testing rename vs alias precedence (rename should win).
- Renamed
Field - Fixture for
#[facet(rename = "...")]test. - Requires
AllFields - Fixture for missing required field error.
- SetWrapper
- Fixture for BTreeSet test.
- Single
Element Tuple Wrapper - Fixture for single-element tuple test.
- Skip
Unknown Struct - Fixture for skip_unknown_fields test (no deny_unknown_fields attribute).
- StdDuration
Wrapper - Fixture for
core::time::Durationtest. - String
Escapes - Fixture for string escape test.
- String
Escapes Extended - Fixture for extended string escape test.
- Struct
Level Default - Fixture for struct-level
#[facet(default)]test. - Struct
Single Field - Shared fixture type for the struct case.
- Suite
Case - Transparent
NonZero - Transparent wrapper around NonZero type.
- Transparent
Option - Transparent wrapper around
Option<T>. - Transparent
Proxy - Transparent wrapper with proxy.
- Tuple
Wrapper - Fixture for tuple test.
- Unit
Struct - Fixture for unit struct test (zero-sized type).
- Untagged
AsField - Struct containing an untagged enum field (nesting test).
- UserId
- Transparent newtype wrapper.
- User
Record - Struct containing a transparent newtype.
- With
Alias - Fixture for
#[facet(alias = "...")]test. - With
Default - Fixture for
#[facet(default)]test. - With
Default Function - Fixture for
#[facet(default = expr)]test. - With
Option - Fixture for
Option<T>withNone. - With
Skip - Fixture for
#[facet(skip)]test (skipped for both ser and de). - With
Skip Serializing - Fixture for
#[facet(skip_serializing)]test. - With
Skip Serializing If - Fixture for
#[facet(skip_serializing_if = predicate)]test.
Enums§
- Adjacently
Tagged - Adjacently tagged enum
#[facet(tag = "t", content = "c")]. - Case
Outcome - Compare
Mode - How to compare the deserialized value against the expected value.
- Complex
Enum - Enum
Variant Rename - Enum with renamed variants.
- Flatten
Auth Method - Auth method enum for multiple flattened enums test.
- Flatten
Transport - Transport enum for multiple flattened enums test.
- Internally
Tagged - Internally tagged enum
#[facet(tag = "type")]. - Mixed
Scalar - Shared fixture type for the mixed scalars case.
- Newtype
Variant Enum - Enum with newtype variant (single field).
- Numeric
Enum - Numeric enum with a u8 discriminant.
- Proxy
Enum - Enum with proxy on a newtype variant.
- Signed
Numeric Enum - Numeric enum with a u8 discriminant.
- Tuple
Variant Enum - Enum with tuple variant (multiple fields).
- Unit
Variant Enum - Unit variant enum.
- Untagged
Enum - Untagged enum that matches by structure.
- Untagged
Newtype - Untagged enum with newtype variants for discrimination testing.
- Untagged
Unit Only - Untagged enum with only unit variants (dataless enum). Tests issue #1228: deserializing untagged dataless enums from strings.
- Untagged
With Null - Untagged enum with unit variant that matches null.
Traits§
- Format
Suite - Trait every format variant implements to participate in the suite.
Functions§
- all_
cases - Enumerate every canonical case with its typed descriptor.
- custom_
default_ value - Default value function for
WithDefaultFunction. - run_
suite - Execute suite cases; kept for convenience, but formats should register each
case individually via
all_cases.