MCPcopy Create free account
hub / github.com/apache/fory / track_ref

Method track_ref

rust/fory-core/src/fory.rs:259–262  ·  view source on GitHub ↗

Enables or disables reference tracking for shared and circular references. # Arguments `track_ref` - If `true`, enables reference tracking which allows preserving shared object references and circular references during serialization/deserialization. # Returns Returns `self` for method chaining. # Default The default value is `false`. # Examples ```rust use fory_core::Fory; let fory = Fory

(mut self, track_ref: bool)

Source from the content-addressed store, hash-verified

257 /// let fory = Fory::builder().track_ref(true).build();
258 /// ```
259 pub fn track_ref(mut self, track_ref: bool) -> Self {
260 self.config.track_ref = track_ref;
261 self
262 }
263
264 /// Sets the maximum depth for nested dynamic object serialization.
265 ///

Calls

no outgoing calls