pub struct Stream {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub display_name: String,
pub source_config: Option<SourceConfig>,
pub destination_config: Option<DestinationConfig>,
pub state: i32,
pub errors: Vec<Error>,
pub customer_managed_encryption_key: Option<String>,
pub backfill_strategy: Option<BackfillStrategy>,
}Expand description
A resource representing streaming data from a source to a destination.
Fields§
§name: StringOutput only. The stream’s name.
create_time: Option<Timestamp>Output only. The creation time of the stream.
update_time: Option<Timestamp>Output only. The last update time of the stream.
labels: HashMap<String, String>Labels.
display_name: StringRequired. Display name.
source_config: Option<SourceConfig>Required. Source connection profile configuration.
destination_config: Option<DestinationConfig>Required. Destination connection profile configuration.
state: i32The state of the stream.
errors: Vec<Error>Output only. Errors on the Stream.
customer_managed_encryption_key: Option<String>Immutable. A reference to a KMS encryption key. If provided, it will be used to encrypt the data. If left blank, data will be encrypted using an internal Stream-specific encryption key provisioned through KMS.
backfill_strategy: Option<BackfillStrategy>Stream backfill strategy.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn customer_managed_encryption_key(&self) -> &str
pub fn customer_managed_encryption_key(&self) -> &str
Returns the value of customer_managed_encryption_key, or the default value if customer_managed_encryption_key is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stream
impl<'de> Deserialize<'de> for Stream
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for Stream
impl Message for Stream
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.