rs_rich.ext.data: structured data: one document tree for JSON, YAML, TOML, XML, INI and dotenv (rich_ext::data).
No Rich counterpart: this is the port's own rs-rich-ext crate.
SECRET_KEYS
module-attribute
DiffView
module-attribute
DataNode
from_python
staticmethod
from_python(value: Any) -> Any
get
get(key: Any, default: Any = ...) -> Any
redacted
redacted(redaction: Any) -> Any
to_json
to_json(*, indent: Any = ...) -> Any
Explorer
max_depth
property
writable
max_length
property
writable
max_string
property
writable
root_label
property
writable
show_paths
property
writable
show_types
property
writable
highlight
highlight(at: Any, style: Any) -> Any
Redaction
matches_key
matches_key(key: Any) -> Any
Select
apply
apply(document: Any) -> Any
Filter
apply
apply(document: Any) -> Any
Highlight
apply
apply(document: Any) -> Any
Redact
apply
apply(document: Any) -> Any
parse_data
parse_data(content: Any, format: Any = ..., *, name: Any = ...) -> Any
detect_format(content: Any, name: Any = ...) -> Any
format_for(file_name: Any) -> Any
flatten
flatten(data: Any) -> Any
unflatten
unflatten(leaves: Any) -> Any
search
search(data: Any, query: Any = ..., **kwargs: Any) -> Any
select
select(data: Any, expression: Any, *, backend: Any = ...) -> Any
selector_backends
selector_backends() -> Any
diff_data
diff_data(old: Any, new: Any) -> Any