#[non_exhaustive]pub struct LoggingDestination {
pub monitored_resource: String,
pub logs: Vec<String>,
/* private fields */
}
Expand description
Configuration of a specific logging destination (the producer project or the consumer project).
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.monitored_resource: String
The monitored resource type. The type must be defined in the Service.monitored_resources section.
logs: Vec<String>
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by “/”.
Implementations§
Source§impl LoggingDestination
impl LoggingDestination
pub fn new() -> Self
Sourcepub fn set_monitored_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_monitored_resource<T: Into<String>>(self, v: T) -> Self
Sets the value of monitored_resource.
Trait Implementations§
Source§impl Clone for LoggingDestination
impl Clone for LoggingDestination
Source§fn clone(&self) -> LoggingDestination
fn clone(&self) -> LoggingDestination
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 LoggingDestination
impl Debug for LoggingDestination
Source§impl Default for LoggingDestination
impl Default for LoggingDestination
Source§fn default() -> LoggingDestination
fn default() -> LoggingDestination
Returns the “default value” for a type. Read more
Source§impl Message for LoggingDestination
impl Message for LoggingDestination
Source§impl PartialEq for LoggingDestination
impl PartialEq for LoggingDestination
impl StructuralPartialEq for LoggingDestination
Auto Trait Implementations§
impl Freeze for LoggingDestination
impl RefUnwindSafe for LoggingDestination
impl Send for LoggingDestination
impl Sync for LoggingDestination
impl Unpin for LoggingDestination
impl UnwindSafe for LoggingDestination
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