pub struct Options {
pub resolve_external: bool,
pub on_circular: Option<fn(&str)>,
}Expand description
Configuration options for the dereferencer.
§Examples
use unbinder::Options;
// Default options
let opts = Options::default();
// Custom options with circular reference logging
let opts = Options {
resolve_external: false,
on_circular: Some(|path| println!("Circular ref: {}", path)),
};Fields§
§resolve_external: boolWhether to resolve external references (currently not supported).
External references are those that don’t start with ‘#’.
Setting this to true will result in an error for external refs.
on_circular: Option<fn(&str)>Callback function invoked when circular references are detected.
The callback receives the reference path that forms a cycle.
Circular references are replaced with null in the output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more