[][src]Struct google_spanner1::Session

pub struct Session {
    pub labels: Option<HashMap<String, String>>,
    pub create_time: Option<String>,
    pub approximate_last_use_time: Option<String>,
    pub name: Option<String>,
}

A session in the Cloud Spanner API.

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).

Fields

labels: Option<HashMap<String, String>>

The labels for the session.

  • Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?.
  • Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?.
  • No more than 64 labels can be associated with a given session.

See https://goo.gl/xmQnxf for more information on and examples of labels.

create_time: Option<String>

Output only. The timestamp when the session is created.

approximate_last_use_time: Option<String>

Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.

name: Option<String>

The name of the session. This is always system-assigned; values provided when creating a session are ignored.

Trait Implementations

impl ResponseResult for Session[src]

impl Default for Session[src]

impl Clone for Session[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Session[src]

impl Serialize for Session[src]

impl<'de> Deserialize<'de> for Session[src]

Auto Trait Implementations

impl Send for Session

impl Unpin for Session

impl Sync for Session

impl UnwindSafe for Session

impl RefUnwindSafe for Session

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]