Struct gapi_grpc::google::spanner::v1::RequestOptions[][src]

pub struct RequestOptions {
    pub priority: i32,
    pub request_tag: String,
    pub transaction_tag: String,
}

Common request options for various APIs.

Fields

priority: i32

Priority for the request.

request_tag: String

A per-request tag which can be applied to queries or reads, used for statistics collection. Both request_tag and transaction_tag can be specified for a read or query that belongs to a transaction. This field is ignored for requests where it’s not applicable (e.g. CommitRequest). Legal characters for request_tag values are all printable characters (ASCII 32 - 126) and the length of a request_tag is limited to 50 characters. Values that exceed this limit are truncated.

transaction_tag: String

A tag used for statistics collection about this transaction. Both request_tag and transaction_tag can be specified for a read or query that belongs to a transaction. The value of transaction_tag should be the same for all requests belonging to the same transaction. If this request doesn’t belong to any transaction, transaction_tag will be ignored. Legal characters for transaction_tag values are all printable characters (ASCII 32 - 126) and the length of a transaction_tag is limited to 50 characters. Values that exceed this limit are truncated.

Implementations

impl RequestOptions[src]

pub fn priority(&self) -> Priority[src]

Returns the enum value of priority, or the default if the field is set to an invalid enum value.

pub fn set_priority(&mut self, value: Priority)[src]

Sets priority to the provided enum value.

Trait Implementations

impl Clone for RequestOptions[src]

impl Debug for RequestOptions[src]

impl Default for RequestOptions[src]

impl Message for RequestOptions[src]

impl PartialEq<RequestOptions> for RequestOptions[src]

impl StructuralPartialEq for RequestOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for RequestOptions

impl Send for RequestOptions

impl Sync for RequestOptions

impl Unpin for RequestOptions

impl UnwindSafe for RequestOptions

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]