Skip to content

Commit 5a3e878

Browse files
committed
docs(stack-encrypt): point from_bytes at the plan null mode that pads an absent value
Claude-Session: https://claude.ai/code/session_01XQN1QpaWVDGjHEg39KEJF3
1 parent 67edf5a commit 5a3e878

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/stack-encrypt/src/dynamic/value_frame.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ impl ValueFrame {
103103
///
104104
/// A typed null in the bytes reads as a plain null: the value this
105105
/// returns does not remember the type, so sealing it does not pad it to
106-
/// the type's length.
106+
/// the type's length. To store a field's absent values padded, give the
107+
/// field `"null": "sealed"` in its plan ([`FieldPlan::with_null`]).
108+
///
109+
/// [`FieldPlan::with_null`]: crate::dynamic::FieldPlan::with_null
107110
///
108111
/// # Errors
109112
///

0 commit comments

Comments
 (0)