#[non_exhaustive]pub struct LoggingConfig {
pub enable_stackdriver_logging: bool,
/* private fields */
}Available on crate features
conversation-profiles or conversations only.Expand description
Defines logging behavior for conversation lifecycle events.
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.enable_stackdriver_logging: boolWhether to log conversation events like CONVERSATION_STARTED to Stackdriver in the conversation project as JSON format ConversationEvent protos.
Implementations§
Source§impl LoggingConfig
impl LoggingConfig
pub fn new() -> Self
Sourcepub fn set_enable_stackdriver_logging<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_stackdriver_logging<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_stackdriver_logging.
§Example
ⓘ
let x = LoggingConfig::new().set_enable_stackdriver_logging(true);Trait Implementations§
Source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
Source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
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 LoggingConfig
impl Debug for LoggingConfig
Source§impl Default for LoggingConfig
impl Default for LoggingConfig
Source§fn default() -> LoggingConfig
fn default() -> LoggingConfig
Returns the “default value” for a type. Read more
Source§impl Message for LoggingConfig
impl Message for LoggingConfig
Source§impl PartialEq for LoggingConfig
impl PartialEq for LoggingConfig
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
Mutably borrows from an owned value. Read more