Struct google_api_proto::google::storagetransfer::v1::LoggingConfig
source · pub struct LoggingConfig {
pub log_actions: Vec<i32>,
pub log_action_states: Vec<i32>,
pub enable_onprem_gcs_transfer_logs: bool,
}
Expand description
Specifies the logging behavior for transfer operations.
Logs can be sent to Cloud Logging for all transfer types. See Read transfer logs for details.
Fields§
§log_actions: Vec<i32>
Specifies the actions to be logged. If empty, no logs are generated.
log_action_states: Vec<i32>
States in which log_actions
are logged. If empty, no logs are generated.
enable_onprem_gcs_transfer_logs: bool
For PosixFilesystem transfers, enables file system transfer logs instead of, or in addition to, Cloud Logging.
This option ignores [LoggableAction] and [LoggableActionState]. If these are set, Cloud Logging will also be enabled for this transfer.
Implementations§
source§impl LoggingConfig
impl LoggingConfig
sourcepub fn log_actions(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<LoggableAction>>
pub fn log_actions( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<LoggableAction>>
Returns an iterator which yields the valid enum values contained in log_actions
.
sourcepub fn push_log_actions(&mut self, value: LoggableAction)
pub fn push_log_actions(&mut self, value: LoggableAction)
Appends the provided enum value to log_actions
.
sourcepub fn log_action_states(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<LoggableActionState>>
pub fn log_action_states( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<LoggableActionState>>
Returns an iterator which yields the valid enum values contained in log_action_states
.
sourcepub fn push_log_action_states(&mut self, value: LoggableActionState)
pub fn push_log_action_states(&mut self, value: LoggableActionState)
Appends the provided enum value to log_action_states
.
Trait Implementations§
source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoggingConfig
impl Debug for LoggingConfig
source§impl Default for LoggingConfig
impl Default for LoggingConfig
source§impl Message for LoggingConfig
impl Message for LoggingConfig
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 LoggingConfig
impl PartialEq for LoggingConfig
source§fn eq(&self, other: &LoggingConfig) -> bool
fn eq(&self, other: &LoggingConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoggingConfig
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnwindSafe for LoggingConfig
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