#[non_exhaustive]pub struct RunStreamRequest {
pub name: String,
pub cdc_strategy: Option<CdcStrategy>,
pub force: bool,
/* private fields */
}
Expand description
Request message for running a stream.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}
cdc_strategy: Option<CdcStrategy>
Optional. The CDC strategy of the stream. If not set, the system’s default value will be used.
force: bool
Optional. Update the stream without validating it.
Implementations§
Source§impl RunStreamRequest
impl RunStreamRequest
pub fn new() -> Self
Sourcepub fn set_cdc_strategy<T>(self, v: T) -> Selfwhere
T: Into<CdcStrategy>,
pub fn set_cdc_strategy<T>(self, v: T) -> Selfwhere
T: Into<CdcStrategy>,
Sets the value of cdc_strategy.
Sourcepub fn set_or_clear_cdc_strategy<T>(self, v: Option<T>) -> Selfwhere
T: Into<CdcStrategy>,
pub fn set_or_clear_cdc_strategy<T>(self, v: Option<T>) -> Selfwhere
T: Into<CdcStrategy>,
Sets or clears the value of cdc_strategy.
Trait Implementations§
Source§impl Clone for RunStreamRequest
impl Clone for RunStreamRequest
Source§fn clone(&self) -> RunStreamRequest
fn clone(&self) -> RunStreamRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RunStreamRequest
impl Debug for RunStreamRequest
Source§impl Default for RunStreamRequest
impl Default for RunStreamRequest
Source§fn default() -> RunStreamRequest
fn default() -> RunStreamRequest
Returns the “default value” for a type. Read more
Source§impl Message for RunStreamRequest
impl Message for RunStreamRequest
Source§impl PartialEq for RunStreamRequest
impl PartialEq for RunStreamRequest
impl StructuralPartialEq for RunStreamRequest
Auto Trait Implementations§
impl Freeze for RunStreamRequest
impl RefUnwindSafe for RunStreamRequest
impl Send for RunStreamRequest
impl Sync for RunStreamRequest
impl Unpin for RunStreamRequest
impl UnwindSafe for RunStreamRequest
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
Mutably borrows from an owned value. Read more