Enum google_api_proto::google::firestore::admin::v1::database::AppEngineIntegrationMode
source · #[repr(i32)]pub enum AppEngineIntegrationMode {
Unspecified = 0,
Enabled = 1,
Disabled = 2,
}
Expand description
The type of App Engine integration mode.
Variants§
Unspecified = 0
Not used.
Enabled = 1
If an App Engine application exists in the same region as this database, App Engine configuration will impact this database. This includes disabling of the application & database, as well as disabling writes to the database.
Disabled = 2
App Engine has no effect on the ability of this database to serve requests.
This is the default setting for databases created with the Firestore API.
Implementations§
source§impl AppEngineIntegrationMode
impl AppEngineIntegrationMode
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of AppEngineIntegrationMode
.
sourcepub fn from_i32(value: i32) -> Option<AppEngineIntegrationMode>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<AppEngineIntegrationMode>
Converts an i32
to a AppEngineIntegrationMode
, or None
if value
is not a valid variant.
source§impl AppEngineIntegrationMode
impl AppEngineIntegrationMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for AppEngineIntegrationMode
impl Clone for AppEngineIntegrationMode
source§fn clone(&self) -> AppEngineIntegrationMode
fn clone(&self) -> AppEngineIntegrationMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AppEngineIntegrationMode
impl Debug for AppEngineIntegrationMode
source§impl Default for AppEngineIntegrationMode
impl Default for AppEngineIntegrationMode
source§fn default() -> AppEngineIntegrationMode
fn default() -> AppEngineIntegrationMode
source§impl From<AppEngineIntegrationMode> for i32
impl From<AppEngineIntegrationMode> for i32
source§fn from(value: AppEngineIntegrationMode) -> i32
fn from(value: AppEngineIntegrationMode) -> i32
source§impl Hash for AppEngineIntegrationMode
impl Hash for AppEngineIntegrationMode
source§impl Ord for AppEngineIntegrationMode
impl Ord for AppEngineIntegrationMode
source§fn cmp(&self, other: &AppEngineIntegrationMode) -> Ordering
fn cmp(&self, other: &AppEngineIntegrationMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AppEngineIntegrationMode
impl PartialEq for AppEngineIntegrationMode
source§fn eq(&self, other: &AppEngineIntegrationMode) -> bool
fn eq(&self, other: &AppEngineIntegrationMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AppEngineIntegrationMode
impl PartialOrd for AppEngineIntegrationMode
source§fn partial_cmp(&self, other: &AppEngineIntegrationMode) -> Option<Ordering>
fn partial_cmp(&self, other: &AppEngineIntegrationMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for AppEngineIntegrationMode
impl TryFrom<i32> for AppEngineIntegrationMode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<AppEngineIntegrationMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<AppEngineIntegrationMode, UnknownEnumValue>
impl Copy for AppEngineIntegrationMode
impl Eq for AppEngineIntegrationMode
impl StructuralPartialEq for AppEngineIntegrationMode
Auto Trait Implementations§
impl Freeze for AppEngineIntegrationMode
impl RefUnwindSafe for AppEngineIntegrationMode
impl Send for AppEngineIntegrationMode
impl Sync for AppEngineIntegrationMode
impl Unpin for AppEngineIntegrationMode
impl UnwindSafe for AppEngineIntegrationMode
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request