Crate facet_format_suite

Crate facet_format_suite 

Source

Structs§

ArcSliceWrapper
Fixture for Arc<[T]> test.
ArcStrWrapper
Fixture for Arc<str> test.
ArcWrapper
Fixture for Arc<T> test.
ArrayWrapper
Fixture for fixed-size array test.
BoolWrapper
Fixture for boolean scalar test.
BoxStrWrapper
Fixture for Box<str> test.
BoxWrapper
Fixture for Box<T> test.
BytesWrapper
Fixture for Vec<u8> binary data test.
CamelCaseStruct
Fixture for #[facet(rename_all = "camelCase")] test.
CaseSpec
Specification returned by each trait method.
CharWrapper
Fixture for char scalar test.
CowStrWrapper
Fixture for Cow<’static, str> test.
DenyUnknownStruct
Fixture for #[facet(deny_unknown_fields)] test.
EmptyTupleWrapper
Fixture for empty tuple test.
ExpectsArray
Fixture for structure mismatch error (object to array).
ExpectsInteger
Fixture for type mismatch error (string to int).
FlattenAuthPassword
Password auth data for multiple flattened enums test.
FlattenAuthToken
Token auth data for multiple flattened enums test.
FlattenInner
Inner struct for flatten test.
FlattenLevel1
Top level for three-level flatten test.
FlattenLevel2
Middle level for three-level flatten test.
FlattenLevel3
Deepest level for three-level flatten test.
FlattenMetadata
Metadata struct for flatten optional tests.
FlattenMultipleEnums
Container with two different flattened enums.
FlattenOptionalNone
Struct for flatten with optional flattened field (None case).
FlattenOptionalSome
Struct for flatten with optional flattened field (Some case).
FlattenOuter
Outer struct with #[facet(flatten)].
FlattenOverlapping
Container with two flattened structs that have overlapping field names.
FlattenPartA
First flattened struct with overlapping fields.
FlattenPartB
Second flattened struct with overlapping fields.
FlattenTransportTcp
TCP transport data for multiple flattened enums test.
FlattenTransportUnix
Unix transport data for multiple flattened enums test.
FloatTypes
Fixture for float scalar test.
FloatTypesScientific
Fixture for scientific notation float test.
HashSetWrapper
Fixture for HashSet test.
InnerTransparent
Inner transparent wrapper.
IntAsString
Proxy type that wraps a string for serialization.
IntegerTypes
Fixture for integer scalar test.
IntegerTypes16
Fixture for 16-bit integer test.
IntegerTypes128
Fixture for 128-bit integer test.
IntegerTypesSize
Fixture for pointer-sized integer test.
MapWrapper
Fixture for BTreeMap test.
NestedChild
NestedParent
NestedTupleWrapper
Fixture for nested tuple test.
NestedVecWrapper
Fixture for nested Vec test.
NewtypeString
Newtype wrapper around String.
NewtypeStringWrapper
Fixture containing newtype String.
NewtypeU64
Newtype wrapper around u64.
NewtypeU64Wrapper
Fixture containing newtype u64.
NonZeroTypes
Fixture for NonZero integer test.
NonZeroTypesExtended
Fixture for extended NonZero integer test.
OpaqueProxyOptionWrapper
Wrapper struct with an optional opaque field using proxy.
OpaqueProxyWrapper
Wrapper struct with an opaque field using proxy.
OpaqueType
An opaque type that does NOT implement Facet. This tests the #[facet(opaque, proxy = ...)] pattern.
OpaqueTypeProxy
Proxy type for OpaqueType that implements Facet.
OuterTransparent
Outer transparent wrapper wrapping another transparent type.
ProxyFieldLevel
Struct with field-level proxy (tests field-level vs container-level).
ProxyInt
Target type that uses the proxy for serialization.
ProxyWithOption
Struct with proxy wrapping Option<T>.
RcStrWrapper
Fixture for Rc<str> test.
RcWrapper
Fixture for Rc<T> test.
RenameAllKebab
Fixture for #[facet(rename_all = "kebab-case")] test.
RenameAllScreaming
Fixture for #[facet(rename_all = "SCREAMING_SNAKE_CASE")] test.
RenameSpecialChars
Struct with special characters in field name via rename.
RenameUnicode
Struct with unicode (emoji) field name via rename.
RenameVsAlias
Fixture for testing rename vs alias precedence (rename should win).
RenamedField
Fixture for #[facet(rename = "...")] test.
RequiresAllFields
Fixture for missing required field error.
SetWrapper
Fixture for BTreeSet test.
SingleElementTupleWrapper
Fixture for single-element tuple test.
SkipUnknownStruct
Fixture for skip_unknown_fields test (no deny_unknown_fields attribute).
StdDurationWrapper
Fixture for core::time::Duration test.
StringEscapes
Fixture for string escape test.
StringEscapesExtended
Fixture for extended string escape test.
StructLevelDefault
Fixture for struct-level #[facet(default)] test.
StructSingleField
Shared fixture type for the struct case.
SuiteCase
TransparentNonZero
Transparent wrapper around NonZero type.
TransparentOption
Transparent wrapper around Option<T>.
TransparentProxy
Transparent wrapper with proxy.
TupleWrapper
Fixture for tuple test.
UnitStruct
Fixture for unit struct test (zero-sized type).
UntaggedAsField
Struct containing an untagged enum field (nesting test).
UserId
Transparent newtype wrapper.
UserRecord
Struct containing a transparent newtype.
WithAlias
Fixture for #[facet(alias = "...")] test.
WithDefault
Fixture for #[facet(default)] test.
WithDefaultFunction
Fixture for #[facet(default = expr)] test.
WithOption
Fixture for Option<T> with None.
WithSkip
Fixture for #[facet(skip)] test (skipped for both ser and de).
WithSkipSerializing
Fixture for #[facet(skip_serializing)] test.
WithSkipSerializingIf
Fixture for #[facet(skip_serializing_if = predicate)] test.

Enums§

AdjacentlyTagged
Adjacently tagged enum #[facet(tag = "t", content = "c")].
CaseOutcome
CompareMode
How to compare the deserialized value against the expected value.
ComplexEnum
EnumVariantRename
Enum with renamed variants.
FlattenAuthMethod
Auth method enum for multiple flattened enums test.
FlattenTransport
Transport enum for multiple flattened enums test.
InternallyTagged
Internally tagged enum #[facet(tag = "type")].
MixedScalar
Shared fixture type for the mixed scalars case.
NewtypeVariantEnum
Enum with newtype variant (single field).
NumericEnum
Numeric enum with a u8 discriminant.
ProxyEnum
Enum with proxy on a newtype variant.
SignedNumericEnum
Numeric enum with a u8 discriminant.
TupleVariantEnum
Enum with tuple variant (multiple fields).
UnitVariantEnum
Unit variant enum.
UntaggedEnum
Untagged enum that matches by structure.
UntaggedNewtype
Untagged enum with newtype variants for discrimination testing.
UntaggedUnitOnly
Untagged enum with only unit variants (dataless enum). Tests issue #1228: deserializing untagged dataless enums from strings.
UntaggedWithNull
Untagged enum with unit variant that matches null.

Traits§

FormatSuite
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.