pub struct GraphExport<'a> {
pub schema_version: &'static str,
pub schema_uri: &'static str,
pub graph: &'a AuthorityGraph,
}Expand description
Standalone authority-graph export — the document emitted by
taudit graph --format json. Versioned independently from the scan
report because downstream tools (tsign, axiom, runtime cells)
consume the graph without caring about findings.
Fields§
§schema_version: &'static strSemver of the authority-graph schema. See AUTHORITY_GRAPH_SCHEMA_VERSION.
schema_uri: &'static strCanonical URI of the schema this document conforms to.
graph: &'a AuthorityGraphThe authority graph itself.
Implementations§
Source§impl<'a> GraphExport<'a>
impl<'a> GraphExport<'a>
Sourcepub fn new(graph: &'a AuthorityGraph) -> Self
pub fn new(graph: &'a AuthorityGraph) -> Self
Wrap a graph reference in a versioned export envelope.
Sourcepub fn to_json_pretty(&self) -> Result<String, TauditError>
pub fn to_json_pretty(&self) -> Result<String, TauditError>
Serialize to pretty-printed JSON.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GraphExport<'a>
impl<'a> RefUnwindSafe for GraphExport<'a>
impl<'a> Send for GraphExport<'a>
impl<'a> Sync for GraphExport<'a>
impl<'a> Unpin for GraphExport<'a>
impl<'a> UnsafeUnpin for GraphExport<'a>
impl<'a> UnwindSafe for GraphExport<'a>
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