Function fieldMaxDepth [src]

Serialize a field. Equivalent to calling fieldPrefix followed by valueMaxDepth. Returns error.ExceededMaxDepth if depth is exceeded.

Prototype

pub fn fieldMaxDepth( self: *Tuple, val: anytype, options: ValueOptions, depth: usize, ) DepthError!void

Parameters

self: *Tupleoptions: ValueOptionsdepth: usize

Possible Errors

ExceededMaxDepth
WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn fieldMaxDepth( self: *Tuple, val: anytype, options: ValueOptions, depth: usize, ) DepthError!void { try self.container.fieldMaxDepth(null, val, options, depth); }