Struct google_api_proto::google::spanner::executor::v1::ExecuteChangeStreamQuery
source · pub struct ExecuteChangeStreamQuery {
pub name: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub partition_token: Option<String>,
pub read_options: Vec<String>,
pub heartbeat_milliseconds: Option<i32>,
pub deadline_seconds: Option<i64>,
pub cloud_database_role: Option<String>,
}
Expand description
Execute a change stream TVF query.
Fields§
§name: String
Name for this change stream.
start_time: Option<Timestamp>
Specifies that records with commit_timestamp greater than or equal to start_time should be returned.
end_time: Option<Timestamp>
Specifies that records with commit_timestamp less than or equal to end_time should be returned.
partition_token: Option<String>
Specifies which change stream partition to query, based on the content of child partitions records.
read_options: Vec<String>
Read options for this change stream query.
heartbeat_milliseconds: Option<i32>
Determines how frequently a heartbeat ChangeRecord will be returned in case there are no transactions committed in this partition, in milliseconds.
deadline_seconds: Option<i64>
Deadline for this change stream query, in seconds.
cloud_database_role: Option<String>
Database role to assume while performing this action. This should only be set for cloud requests. Setting the database role will enforce additional role-based access checks on this action.
Implementations§
source§impl ExecuteChangeStreamQuery
impl ExecuteChangeStreamQuery
sourcepub fn partition_token(&self) -> &str
pub fn partition_token(&self) -> &str
Returns the value of partition_token
, or the default value if partition_token
is unset.
sourcepub fn heartbeat_milliseconds(&self) -> i32
pub fn heartbeat_milliseconds(&self) -> i32
Returns the value of heartbeat_milliseconds
, or the default value if heartbeat_milliseconds
is unset.
sourcepub fn deadline_seconds(&self) -> i64
pub fn deadline_seconds(&self) -> i64
Returns the value of deadline_seconds
, or the default value if deadline_seconds
is unset.
sourcepub fn cloud_database_role(&self) -> &str
pub fn cloud_database_role(&self) -> &str
Returns the value of cloud_database_role
, or the default value if cloud_database_role
is unset.
Trait Implementations§
source§impl Clone for ExecuteChangeStreamQuery
impl Clone for ExecuteChangeStreamQuery
source§fn clone(&self) -> ExecuteChangeStreamQuery
fn clone(&self) -> ExecuteChangeStreamQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecuteChangeStreamQuery
impl Debug for ExecuteChangeStreamQuery
source§impl Default for ExecuteChangeStreamQuery
impl Default for ExecuteChangeStreamQuery
source§impl Message for ExecuteChangeStreamQuery
impl Message for ExecuteChangeStreamQuery
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ExecuteChangeStreamQuery
impl PartialEq for ExecuteChangeStreamQuery
source§fn eq(&self, other: &ExecuteChangeStreamQuery) -> bool
fn eq(&self, other: &ExecuteChangeStreamQuery) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExecuteChangeStreamQuery
Auto Trait Implementations§
impl Freeze for ExecuteChangeStreamQuery
impl RefUnwindSafe for ExecuteChangeStreamQuery
impl Send for ExecuteChangeStreamQuery
impl Sync for ExecuteChangeStreamQuery
impl Unpin for ExecuteChangeStreamQuery
impl UnwindSafe for ExecuteChangeStreamQuery
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<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