Function valueMaxDepth [src]
Serialize a value, similar to serializeMaxDepth.
Can return error.ExceededMaxDepth.
Prototype
pub fn valueMaxDepth(self: *Serializer, val: anytype, options: ValueOptions, depth: usize) DepthError!void
Parameters
self: *Serializer
options: ValueOptions
depth: usize
Possible Errors
Source
pub fn valueMaxDepth(self: *Serializer, val: anytype, options: ValueOptions, depth: usize) DepthError!void {
try checkValueDepth(val, depth);
return self.valueArbitraryDepth(val, options);
}