Struct firestore::FirestoreDbOptions
source · pub struct FirestoreDbOptions {
pub google_project_id: String,
pub database_id: String,
pub max_retries: usize,
pub firebase_api_url: Option<String>,
}
Fields§
§google_project_id: String
§database_id: String
§max_retries: usize
§firebase_api_url: Option<String>
Implementations§
source§impl FirestoreDbOptions
impl FirestoreDbOptions
pub fn new(google_project_id: String) -> Self
pub fn google_project_id(&mut self, value: String) -> &mut Self
pub fn with_google_project_id(self, value: String) -> Self
pub fn database_id(&mut self, value: String) -> &mut Self
pub fn with_database_id(self, value: String) -> Self
pub fn max_retries(&mut self, value: usize) -> &mut Self
pub fn with_max_retries(self, value: usize) -> Self
pub fn firebase_api_url(&mut self, value: String) -> &mut Self
pub fn reset_firebase_api_url(&mut self) -> &mut Self
pub fn mopt_firebase_api_url(&mut self, value: Option<String>) -> &mut Self
pub fn with_firebase_api_url(self, value: String) -> Self
pub fn without_firebase_api_url(self) -> Self
pub fn opt_firebase_api_url(self, value: Option<String>) -> Self
Trait Implementations§
source§impl Clone for FirestoreDbOptions
impl Clone for FirestoreDbOptions
source§fn clone(&self) -> FirestoreDbOptions
fn clone(&self) -> FirestoreDbOptions
Returns a copy 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 FirestoreDbOptions
impl Debug for FirestoreDbOptions
source§impl From<FirestoreDbOptionsInit> for FirestoreDbOptions
impl From<FirestoreDbOptionsInit> for FirestoreDbOptions
source§fn from(value: FirestoreDbOptionsInit) -> Self
fn from(value: FirestoreDbOptionsInit) -> Self
Converts to this type from the input type.
source§impl PartialEq<FirestoreDbOptions> for FirestoreDbOptions
impl PartialEq<FirestoreDbOptions> for FirestoreDbOptions
source§fn eq(&self, other: &FirestoreDbOptions) -> bool
fn eq(&self, other: &FirestoreDbOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FirestoreDbOptions
impl StructuralEq for FirestoreDbOptions
impl StructuralPartialEq for FirestoreDbOptions
Auto Trait Implementations§
impl RefUnwindSafe for FirestoreDbOptions
impl Send for FirestoreDbOptions
impl Sync for FirestoreDbOptions
impl Unpin for FirestoreDbOptions
impl UnwindSafe for FirestoreDbOptions
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request