pub struct Schema;Implementations§
Source§impl Schema
impl Schema
Sourcepub fn catalog() -> Result<SchemaCatalog>
pub fn catalog() -> Result<SchemaCatalog>
Examples found in repository?
examples/05_schema_catalog.rs (line 4)
3fn main() -> Result<(), Box<dyn std::error::Error>> {
4 let catalog = Schema::catalog()?;
5 println!(
6 "all={} components={} entities={} proxies={} setup_domain={}",
7 catalog.all.len(),
8 catalog.components.len(),
9 catalog.entities.len(),
10 catalog.proxies.len(),
11 catalog.get("kSCDynamicStoreDomainSetup").unwrap_or_default()
12 );
13 Ok(())
14}Trait Implementations§
impl Copy for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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