pub struct SchemaGraph {
pub graph: i64,
pub role: SchemaRole,
pub iri: Option<String>,
pub version: Option<String>,
pub sha256: Option<String>,
pub imports: Vec<String>,
pub active: bool,
pub loaded_at: f64,
}Expand description
One row of schema_graphs.
Fields§
§graph: i64Term id of the graph name (0 is the default graph).
role: SchemaRole§iri: Option<String>The owl:Ontology IRI, when it differs from the graph name.
version: Option<String>owl:versionIRI, a version string, or anything the caller wants to pin.
sha256: Option<String>Digest of the loaded document, for drift detection by the caller.
imports: Vec<String>owl:imports targets, as the caller recorded them.
active: boolInactive graphs stay registered (and hidden) but stop contributing.
loaded_at: f64Seconds since the Unix epoch, as the caller recorded them.
Implementations§
Source§impl SchemaGraph
impl SchemaGraph
Sourcepub fn new(graph: i64, role: SchemaRole) -> Self
pub fn new(graph: i64, role: SchemaRole) -> Self
A registration with only the required fields filled in.
Trait Implementations§
Source§impl Clone for SchemaGraph
impl Clone for SchemaGraph
Source§impl Debug for SchemaGraph
impl Debug for SchemaGraph
Source§impl PartialEq for SchemaGraph
impl PartialEq for SchemaGraph
impl StructuralPartialEq for SchemaGraph
Auto Trait Implementations§
impl Freeze for SchemaGraph
impl RefUnwindSafe for SchemaGraph
impl Send for SchemaGraph
impl Sync for SchemaGraph
impl Unpin for SchemaGraph
impl UnsafeUnpin for SchemaGraph
impl UnwindSafe for SchemaGraph
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