pub struct BackendTemplateContext {
pub project_name: String,
pub project_name_pascal: String,
pub has_organizations: bool,
pub database: String,
pub tideway_version: String,
pub tideway_features: Vec<String>,
pub has_tideway_features: bool,
pub has_auth_feature: bool,
pub has_database_feature: bool,
pub has_openapi_feature: bool,
pub needs_arc: bool,
pub has_config: bool,
}Expand description
Context for backend template rendering
Fields§
§project_name: StringProject name in snake_case (e.g., “my_app”)
project_name_pascal: StringProject name in PascalCase (e.g., “MyApp”)
has_organizations: boolWhether the preset includes organizations (B2B)
database: StringDatabase type (“postgres” or “sqlite”)
tideway_version: StringTideway crate version for scaffolding
tideway_features: Vec<String>Tideway feature list for starter templates
has_tideway_features: boolWhether any Tideway features were requested
has_auth_feature: boolWhether auth is requested (starter templates)
has_database_feature: boolWhether database is requested (starter templates)
has_openapi_feature: boolWhether openapi is requested (starter templates)
needs_arc: boolWhether starter templates need Arc
has_config: boolWhether starter templates should include config/error modules
Trait Implementations§
Source§impl Clone for BackendTemplateContext
impl Clone for BackendTemplateContext
Source§fn clone(&self) -> BackendTemplateContext
fn clone(&self) -> BackendTemplateContext
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 moreAuto Trait Implementations§
impl Freeze for BackendTemplateContext
impl RefUnwindSafe for BackendTemplateContext
impl Send for BackendTemplateContext
impl Sync for BackendTemplateContext
impl Unpin for BackendTemplateContext
impl UnwindSafe for BackendTemplateContext
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