#[non_exhaustive]pub struct LogDescriptor {
pub name: String,
pub labels: Vec<LabelDescriptor>,
pub description: String,
pub display_name: String,
}Expand description
A description of a log type. Example in YAML format:
- name: library.googleapis.com/activity_history
description: The history of borrowing and returning library items.
display_name: Activity
labels:
- key: /customer_id
description: Identifier of a library customerFields (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: StringThe name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation characters including slash, underscore, hyphen, period [/_-.].
labels: Vec<LabelDescriptor>The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.
description: StringA human-readable description of this log. This information appears in the documentation and can contain details.
display_name: StringThe human-readable name for this log. This information appears on the user interface and should be concise.
Implementations§
Source§impl LogDescriptor
impl LogDescriptor
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_labels<T, V>(self, v: T) -> Self
pub fn set_labels<T, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
Source§impl Clone for LogDescriptor
impl Clone for LogDescriptor
Source§fn clone(&self) -> LogDescriptor
fn clone(&self) -> LogDescriptor
Returns a copy 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 LogDescriptor
impl Debug for LogDescriptor
Source§impl Default for LogDescriptor
impl Default for LogDescriptor
Source§fn default() -> LogDescriptor
fn default() -> LogDescriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogDescriptorwhere
LogDescriptor: Default,
impl<'de> Deserialize<'de> for LogDescriptorwhere
LogDescriptor: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for LogDescriptor
impl Message for LogDescriptor
Source§impl PartialEq for LogDescriptor
impl PartialEq for LogDescriptor
Source§impl Serialize for LogDescriptor
impl Serialize for LogDescriptor
impl StructuralPartialEq for LogDescriptor
Auto Trait Implementations§
impl Freeze for LogDescriptor
impl RefUnwindSafe for LogDescriptor
impl Send for LogDescriptor
impl Sync for LogDescriptor
impl Unpin for LogDescriptor
impl UnwindSafe for LogDescriptor
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