pub struct DatabaseInstance {
pub database_url: Option<String>,
pub name: Option<String>,
pub project: Option<String>,
pub state: Option<String>,
pub type_: Option<String>,
}Expand description
Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations instances create projects (request|response)
- locations instances delete projects (response)
- locations instances disable projects (response)
- locations instances get projects (response)
- locations instances reenable projects (response)
- locations instances undelete projects (response)
Fields§
§database_url: Option<String>Output only. Output Only. The globally unique hostname of the database.
name: Option<String>The fully qualified resource name of the database instance, in the form: projects/{project-number}/locations/{location-id}/instances/{database-id}.
project: Option<String>Output only. The resource name of the project this instance belongs to. For example: projects/{project-number}.
state: Option<String>Output only. The database’s lifecycle state. Read-only.
type_: Option<String>Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
Trait Implementations§
Source§impl Clone for DatabaseInstance
impl Clone for DatabaseInstance
Source§fn clone(&self) -> DatabaseInstance
fn clone(&self) -> DatabaseInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DatabaseInstance
impl Debug for DatabaseInstance
Source§impl Default for DatabaseInstance
impl Default for DatabaseInstance
Source§fn default() -> DatabaseInstance
fn default() -> DatabaseInstance
Source§impl<'de> Deserialize<'de> for DatabaseInstance
impl<'de> Deserialize<'de> for DatabaseInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for DatabaseInstance
impl Serialize for DatabaseInstance
impl RequestValue for DatabaseInstance
impl ResponseResult for DatabaseInstance
Auto Trait Implementations§
impl Freeze for DatabaseInstance
impl RefUnwindSafe for DatabaseInstance
impl Send for DatabaseInstance
impl Sync for DatabaseInstance
impl Unpin for DatabaseInstance
impl UnwindSafe for DatabaseInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more