pub struct CompiledSchema {
pub domain: String,
pub compiled_at: DateTime<Utc>,
pub models: Vec<DataModel>,
pub actions: Vec<CompiledAction>,
pub relationships: Vec<ModelRelationship>,
pub stats: SchemaStats,
}Expand description
A fully compiled schema for a single website domain.
Fields§
§domain: StringThe domain this schema was compiled from.
compiled_at: DateTime<Utc>When this schema was compiled.
models: Vec<DataModel>Discovered typed data models (Product, Article, etc.).
actions: Vec<CompiledAction>Compiled HTTP actions (search, add_to_cart, etc.).
relationships: Vec<ModelRelationship>Relationships between models (belongs_to, has_many, etc.).
stats: SchemaStatsCompilation statistics.
Trait Implementations§
Source§impl Clone for CompiledSchema
impl Clone for CompiledSchema
Source§fn clone(&self) -> CompiledSchema
fn clone(&self) -> CompiledSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompiledSchema
impl Debug for CompiledSchema
Source§impl<'de> Deserialize<'de> for CompiledSchema
impl<'de> Deserialize<'de> for CompiledSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompiledSchema
impl RefUnwindSafe for CompiledSchema
impl Send for CompiledSchema
impl Sync for CompiledSchema
impl Unpin for CompiledSchema
impl UnsafeUnpin for CompiledSchema
impl UnwindSafe for CompiledSchema
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