enum FieldPlan {
Scalar,
Struct {
encoders: Vec<FieldBinding>,
},
List {
items_nullability: Option<Nullability>,
item_plan: Box<FieldPlan>,
},
Decimal {
size: Option<usize>,
},
Uuid,
Map {
values_nullability: Option<Nullability>,
value_plan: Box<FieldPlan>,
},
Enum {
symbols: Arc<[String]>,
},
}
Expand description
Per‑site encoder plan for a field. This mirrors the Avro structure, so nested optional branch order can be honored exactly as declared by the schema.
Variants§
Scalar
Non-nested scalar/logical type
Struct
Record/Struct with Avro‑ordered children
Fields
§
encoders: Vec<FieldBinding>
List
Array with item‑site nullability and nested plan
Decimal
Avro decimal logical type (bytes or fixed). size=None
=> bytes(decimal), Some(n)
=> fixed(n)
Uuid
Avro UUID logical type (fixed)
Map
Avro map with value‑site nullability and nested plan
Enum
Avro enum; maps to Arrow Dictionary<Int32, Utf8> with dictionary values
exactly equal and ordered as the Avro enum symbols
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldPlan
impl RefUnwindSafe for FieldPlan
impl Send for FieldPlan
impl Sync for FieldPlan
impl Unpin for FieldPlan
impl UnwindSafe for FieldPlan
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