1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// SPDX-License-Identifier: Apache-2.0
// Copyright 2026 ZeroDDS Contributors
//! The value a member takes when the stream does not carry it โ at
//! `serde_json::Value`.
//!
//! Table 9 and ยง7.2.2.4.4.4.9 live in
//! `zerodds_wire_codec::default`; this pins both entry points to the
//! value file's own representation.
//!
//! Both carry a recursion marker for the reason `contract.rs`'s module
//! note gives: `dds_bounded_recursion` reads a path call by its last
//! segment, so forwarding to the function of the same name in the other
//! crate looks like recursion. Depth 1 each.
use Value;
use ;
use Id;
use ProbeError;
/// The default value of one member: its `@default`, or its type's. See
/// [`zerodds_wire_codec::default::member`].
///
/// # Errors
/// [`ProbeError`] when the type has no default this project can name, or
/// when a `@default` and the member's type disagree.
///
/// zerodds-lint: recursion-depth 1 โ this does not recurse. The one call
/// it makes is `zerodds_wire_codec::default::member`, and the lint reads a
/// path call by its last segment. See the module note.
/// Table 9's default for a type. See
/// [`zerodds_wire_codec::default::of_type`].
///
/// # Errors
/// [`ProbeError`] for a type kind with no default.
///
/// zerodds-lint: recursion-depth 1 โ this does not recurse. The one call
/// it makes is `zerodds_wire_codec::default::of_type`, and the lint reads
/// a path call by its last segment. See the module note.