pub struct Options<'a> {
pub application_id: &'a str,
pub api_key: &'a str,
pub database_url: Option<&'a str>,
pub ga_tracking_id: Option<&'a str>,
pub storage_bucket: Option<&'a str>,
pub project_id: Option<&'a str>,
pub gcm_sender_id: Option<&'a str>,
pub auth_domain: Option<&'a str>,
}
Expand description
Represents the configurable options for an application.
Fields§
§application_id: &'a str
The application ID.
api_key: &'a str
The API key for accessing the application.
database_url: Option<&'a str>
The URL of the database (optional).
ga_tracking_id: Option<&'a str>
The Google Analytics tracking ID (optional).
storage_bucket: Option<&'a str>
The storage bucket (optional).
project_id: Option<&'a str>
The project ID (optional).
gcm_sender_id: Option<&'a str>
The Google Cloud Messaging (GCM) sender ID (optional).
auth_domain: Option<&'a str>
The authentication domain (optional).
Implementations§
Source§impl<'a> Options<'a>
impl<'a> Options<'a>
Sourcepub const fn with_database_url(self, database_url: &'a str) -> Self
pub const fn with_database_url(self, database_url: &'a str) -> Self
Sourcepub const fn with_ga_tracking_id(self, ga_tracking_id: &'a str) -> Self
pub const fn with_ga_tracking_id(self, ga_tracking_id: &'a str) -> Self
Sourcepub const fn with_storage_bucket(self, storage_bucket: &'a str) -> Self
pub const fn with_storage_bucket(self, storage_bucket: &'a str) -> Self
Sourcepub const fn with_project_id(self, project_id: &'a str) -> Self
pub const fn with_project_id(self, project_id: &'a str) -> Self
Sourcepub const fn with_gcm_sender_id(self, gcm_sender_id: &'a str) -> Self
pub const fn with_gcm_sender_id(self, gcm_sender_id: &'a str) -> Self
Sourcepub const fn with_auth_domain(self, auth_domain: &'a str) -> Self
pub const fn with_auth_domain(self, auth_domain: &'a str) -> Self
Auto Trait Implementations§
impl<'a> Freeze for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
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