Struct spanner_rs::DatabaseId
source · [−]pub struct DatabaseId(_, _);
Expand description
The resource that identifies a Cloud Spanner database in a particular Cloud Spanner instance.
Implementations
sourceimpl DatabaseId
impl DatabaseId
sourcepub fn new(instance: InstanceId, name: &str) -> Self
pub fn new(instance: InstanceId, name: &str) -> Self
Creates a new DatabaseId
resource using the specified instance resource and name.
Trait Implementations
sourceimpl Clone for DatabaseId
impl Clone for DatabaseId
sourcefn clone(&self) -> DatabaseId
fn clone(&self) -> DatabaseId
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DatabaseId
impl Debug for DatabaseId
sourceimpl PartialEq<DatabaseId> for DatabaseId
impl PartialEq<DatabaseId> for DatabaseId
sourcefn eq(&self, other: &DatabaseId) -> bool
fn eq(&self, other: &DatabaseId) -> bool
sourceimpl SpannerResource for DatabaseId
impl SpannerResource for DatabaseId
impl Eq for DatabaseId
impl StructuralEq for DatabaseId
impl StructuralPartialEq for DatabaseId
Auto Trait Implementations
impl RefUnwindSafe for DatabaseId
impl Send for DatabaseId
impl Sync for DatabaseId
impl Unpin for DatabaseId
impl UnwindSafe for DatabaseId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request