Struct create_rust_app::AppData
source · pub struct AppData {
pub mailer: Mailer,
pub database: Database,
pub storage: Storage,
}
Expand description
Fields§
§mailer: Mailer
wrapper for SMTP mailing server accessed by chosen web framework
see Mailer
database: Database
db agnostic wrapper for databases accessed by chosen web framework
see Database
storage: Storage
wrapper for Amazon S3 cloud file storage service accessed by chosen web framework
see Storage
Implementations§
source§impl AppData
impl AppData
pub fn with_custom_email_templates<T: EmailTemplates + 'static>( self, templates: T ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppData
impl Send for AppData
impl Sync for AppData
impl Unpin for AppData
impl !UnwindSafe for AppData
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more