Struct google_api_proto::google::cloud::pubsublite::v1::ExportConfig
source · pub struct ExportConfig {
pub desired_state: i32,
pub current_state: i32,
pub dead_letter_topic: String,
pub destination: Option<Destination>,
}
Expand description
Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription.
Fields§
§desired_state: i32
The desired state of this export. Setting this to values other than
ACTIVE
and PAUSED
will result in an error.
current_state: i32
Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
dead_letter_topic: String
Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher.
Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
destination: Option<Destination>
The destination to export to. Required.
Implementations§
source§impl ExportConfig
impl ExportConfig
sourcepub fn desired_state(&self) -> State
pub fn desired_state(&self) -> State
Returns the enum value of desired_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_desired_state(&mut self, value: State)
pub fn set_desired_state(&mut self, value: State)
Sets desired_state
to the provided enum value.
sourcepub fn current_state(&self) -> State
pub fn current_state(&self) -> State
Returns the enum value of current_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_current_state(&mut self, value: State)
pub fn set_current_state(&mut self, value: State)
Sets current_state
to the provided enum value.
Trait Implementations§
source§impl Clone for ExportConfig
impl Clone for ExportConfig
source§fn clone(&self) -> ExportConfig
fn clone(&self) -> ExportConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExportConfig
impl Debug for ExportConfig
source§impl Default for ExportConfig
impl Default for ExportConfig
source§impl Message for ExportConfig
impl Message for ExportConfig
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 ExportConfig
impl PartialEq for ExportConfig
source§fn eq(&self, other: &ExportConfig) -> bool
fn eq(&self, other: &ExportConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExportConfig
Auto Trait Implementations§
impl Freeze for ExportConfig
impl RefUnwindSafe for ExportConfig
impl Send for ExportConfig
impl Sync for ExportConfig
impl Unpin for ExportConfig
impl UnwindSafe for ExportConfig
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