pub enum StoreDocument {
Server(Box<TomlDocument<Server>>),
Secrets(TomlDocument<SecretCatalog>),
Clients(TomlDocument<ClientPrefsFile>),
Settings(TomlDocument<Settings>),
Sources(TomlDocument<SourcesFile>),
Catalogs(TomlDocument<CatalogsFile>),
SkillMeta(TomlDocument<SkillMeta>),
Project(TomlDocument<ProjectManifest>),
Machine(TomlDocument<MachineOverlay>),
Applied(TomlDocument<AppliedRecord>),
}Expand description
A parsed store file of any kind.
Variants§
Server(Box<TomlDocument<Server>>)
Boxed: a server is several times larger than the other kinds.
Secrets(TomlDocument<SecretCatalog>)
Clients(TomlDocument<ClientPrefsFile>)
Settings(TomlDocument<Settings>)
Sources(TomlDocument<SourcesFile>)
Catalogs(TomlDocument<CatalogsFile>)
SkillMeta(TomlDocument<SkillMeta>)
Project(TomlDocument<ProjectManifest>)
Machine(TomlDocument<MachineOverlay>)
Applied(TomlDocument<AppliedRecord>)
Implementations§
Source§impl StoreDocument
impl StoreDocument
Sourcepub fn parse(file: &StoreFile, text: &str) -> Result<Self, Diagnostic>
pub fn parse(file: &StoreFile, text: &str) -> Result<Self, Diagnostic>
Parses text as the kind of file.
Trait Implementations§
Source§impl Clone for StoreDocument
impl Clone for StoreDocument
Auto Trait Implementations§
impl Forget for StoreDocument
impl Freeze for StoreDocumentwhere
*const TomlDocument<Server> is !null: Freeze,
PhantomData<TomlDocument<Server>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Item>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<Key, Item>>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, SecretEntry> is !null: Freeze,
PhantomData<Box<(String, SecretEntry)>>: Freeze,
*const LeafNode<String, ClientPrefs> is !null: Freeze,
PhantomData<Box<(String, ClientPrefs)>>: Freeze,
*const LeafNode<String, SourceRecord> is !null: Freeze,
PhantomData<Box<(String, SourceRecord)>>: Freeze,
*const LeafNode<String, CatalogRecord> is !null: Freeze,
PhantomData<Box<(String, CatalogRecord)>>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, ProjectServer> is !null: Freeze,
PhantomData<Box<(String, ProjectServer)>>: Freeze,
*const LeafNode<String, Vec<String>> is !null: Freeze,
PhantomData<Box<(String, Vec<String>)>>: Freeze,
*const LeafNode<String, ServerOverride> is !null: Freeze,
PhantomData<Box<(String, ServerOverride)>>: Freeze,
*const LeafNode<String, MachineProject> is !null: Freeze,
PhantomData<Box<(String, MachineProject)>>: Freeze,
PhantomData<AppliedTarget>: Freeze,
impl Move for StoreDocument
impl RefUnwindSafe for StoreDocument
impl Send for StoreDocumentwhere
BoxRaw<TomlDocument<Server>>: Send,
RawVecInner: Send,
RawTable<usize>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, SecretEntry, LeafOrInternal>: Send,
BoxRaw<(String, SecretEntry)>: Send,
NodeRef<Owned, String, ClientPrefs, LeafOrInternal>: Send,
BoxRaw<(String, ClientPrefs)>: Send,
NodeRef<Owned, String, SourceRecord, LeafOrInternal>: Send,
BoxRaw<(String, SourceRecord)>: Send,
NodeRef<Owned, String, CatalogRecord, LeafOrInternal>: Send,
BoxRaw<(String, CatalogRecord)>: Send,
NodeRef<Owned, String, ProjectServer, LeafOrInternal>: Send,
BoxRaw<(String, ProjectServer)>: Send,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Send,
BoxRaw<(String, Vec<String>)>: Send,
NodeRef<Owned, String, ServerOverride, LeafOrInternal>: Send,
BoxRaw<(String, ServerOverride)>: Send,
NodeRef<Owned, String, MachineProject, LeafOrInternal>: Send,
BoxRaw<(String, MachineProject)>: Send,
impl Sync for StoreDocumentwhere
BoxRaw<TomlDocument<Server>>: Sync,
RawVecInner: Sync,
RawTable<usize>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, SecretEntry, LeafOrInternal>: Sync,
BoxRaw<(String, SecretEntry)>: Sync,
NodeRef<Owned, String, ClientPrefs, LeafOrInternal>: Sync,
BoxRaw<(String, ClientPrefs)>: Sync,
NodeRef<Owned, String, SourceRecord, LeafOrInternal>: Sync,
BoxRaw<(String, SourceRecord)>: Sync,
NodeRef<Owned, String, CatalogRecord, LeafOrInternal>: Sync,
BoxRaw<(String, CatalogRecord)>: Sync,
NodeRef<Owned, String, ProjectServer, LeafOrInternal>: Sync,
BoxRaw<(String, ProjectServer)>: Sync,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<String>)>: Sync,
NodeRef<Owned, String, ServerOverride, LeafOrInternal>: Sync,
BoxRaw<(String, ServerOverride)>: Sync,
NodeRef<Owned, String, MachineProject, LeafOrInternal>: Sync,
BoxRaw<(String, MachineProject)>: Sync,
impl Unpin for StoreDocumentwhere
Box<TomlDocument<Server>>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<String, SecretEntry> is !null: Unpin,
Box<(String, SecretEntry)>: Unpin,
*const LeafNode<String, ClientPrefs> is !null: Unpin,
Box<(String, ClientPrefs)>: Unpin,
*const LeafNode<String, SourceRecord> is !null: Unpin,
Box<(String, SourceRecord)>: Unpin,
*const LeafNode<String, CatalogRecord> is !null: Unpin,
Box<(String, CatalogRecord)>: Unpin,
*const LeafNode<String, ProjectServer> is !null: Unpin,
Box<(String, ProjectServer)>: Unpin,
*const LeafNode<String, Vec<String>> is !null: Unpin,
Box<(String, Vec<String>)>: Unpin,
*const LeafNode<String, ServerOverride> is !null: Unpin,
Box<(String, ServerOverride)>: Unpin,
*const LeafNode<String, MachineProject> is !null: Unpin,
Box<(String, MachineProject)>: Unpin,
impl UnsafeUnpin for StoreDocumentwhere
*const TomlDocument<Server> is !null: UnsafeUnpin,
PhantomData<TomlDocument<Server>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<Key, Item>>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, SecretEntry> is !null: UnsafeUnpin,
PhantomData<Box<(String, SecretEntry)>>: UnsafeUnpin,
*const LeafNode<String, ClientPrefs> is !null: UnsafeUnpin,
PhantomData<Box<(String, ClientPrefs)>>: UnsafeUnpin,
*const LeafNode<String, SourceRecord> is !null: UnsafeUnpin,
PhantomData<Box<(String, SourceRecord)>>: UnsafeUnpin,
*const LeafNode<String, CatalogRecord> is !null: UnsafeUnpin,
PhantomData<Box<(String, CatalogRecord)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, ProjectServer> is !null: UnsafeUnpin,
PhantomData<Box<(String, ProjectServer)>>: UnsafeUnpin,
*const LeafNode<String, Vec<String>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Vec<String>)>>: UnsafeUnpin,
*const LeafNode<String, ServerOverride> is !null: UnsafeUnpin,
PhantomData<Box<(String, ServerOverride)>>: UnsafeUnpin,
*const LeafNode<String, MachineProject> is !null: UnsafeUnpin,
PhantomData<Box<(String, MachineProject)>>: UnsafeUnpin,
PhantomData<AppliedTarget>: UnsafeUnpin,
impl UnwindSafe for StoreDocumentwhere
BoxRaw<TomlDocument<Server>>: UnwindSafe,
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, SecretEntry>: UnwindSafe,
BTreeMap<String, ClientPrefs>: UnwindSafe,
BTreeMap<String, SourceRecord>: UnwindSafe,
BTreeMap<String, CatalogRecord>: UnwindSafe,
BTreeMap<String, ProjectServer>: UnwindSafe,
BTreeMap<String, Vec<String>>: UnwindSafe,
BTreeMap<String, ServerOverride>: UnwindSafe,
BTreeMap<String, MachineProject>: UnwindSafe,
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