#[non_exhaustive]pub struct ReferenceList {
pub name: String,
pub display_name: String,
pub revision_create_time: Option<Timestamp>,
pub description: String,
pub entries: Vec<ReferenceListEntry>,
pub rules: Vec<String>,
pub syntax_type: ReferenceListSyntaxType,
pub rule_associations_count: i32,
pub scope_info: Option<ScopeInfo>,
/* private fields */
}Expand description
A reference list. Reference lists are user-defined lists of values which users can use in multiple Rules.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The resource name of the reference list.
Format:
projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}
display_name: StringOutput only. The unique display name of the reference list.
revision_create_time: Option<Timestamp>Output only. The timestamp when the reference list was last updated.
description: StringRequired. A user-provided description of the reference list.
entries: Vec<ReferenceListEntry>Required. The entries of the reference list. When listed, they are returned in the order that was specified at creation or update. The combined size of the values of the reference list may not exceed 6MB. This is returned only when the view is REFERENCE_LIST_VIEW_FULL.
rules: Vec<String>Output only. The resource names for the associated self-authored Rules that use this reference list. This is returned only when the view is REFERENCE_LIST_VIEW_FULL.
syntax_type: ReferenceListSyntaxTypeRequired. The syntax type indicating how list entries should be validated.
rule_associations_count: i32Output only. The count of self-authored rules using the reference list.
scope_info: Option<ScopeInfo>The scope info of the reference list. During reference list creation, if this field is not set, the reference list without scopes (an unscoped list) will be created for an unscoped user. For a scoped user, this field must be set. During reference list update, if scope_info is requested to be updated, this field must be set.
Implementations§
Source§impl ReferenceList
impl ReferenceList
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_revision_create_time<T>(self, v: T) -> Self
pub fn set_revision_create_time<T>(self, v: T) -> Self
Sets the value of revision_create_time.
§Example
use wkt::Timestamp;
let x = ReferenceList::new().set_revision_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_revision_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_revision_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of revision_create_time.
§Example
use wkt::Timestamp;
let x = ReferenceList::new().set_or_clear_revision_create_time(Some(Timestamp::default()/* use setters */));
let x = ReferenceList::new().set_or_clear_revision_create_time(None::<Timestamp>);Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_entries<T, V>(self, v: T) -> Self
pub fn set_entries<T, V>(self, v: T) -> Self
Sourcepub fn set_syntax_type<T: Into<ReferenceListSyntaxType>>(self, v: T) -> Self
pub fn set_syntax_type<T: Into<ReferenceListSyntaxType>>(self, v: T) -> Self
Sets the value of syntax_type.
§Example
use google_cloud_chronicle_v1::model::ReferenceListSyntaxType;
let x0 = ReferenceList::new().set_syntax_type(ReferenceListSyntaxType::PlainTextString);
let x1 = ReferenceList::new().set_syntax_type(ReferenceListSyntaxType::Regex);
let x2 = ReferenceList::new().set_syntax_type(ReferenceListSyntaxType::Cidr);Sourcepub fn set_rule_associations_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_rule_associations_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of rule_associations_count.
§Example
let x = ReferenceList::new().set_rule_associations_count(42);Sourcepub fn set_scope_info<T>(self, v: T) -> Self
pub fn set_scope_info<T>(self, v: T) -> Self
Sets the value of scope_info.
§Example
use google_cloud_chronicle_v1::model::ScopeInfo;
let x = ReferenceList::new().set_scope_info(ScopeInfo::default()/* use setters */);Sourcepub fn set_or_clear_scope_info<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_scope_info<T>(self, v: Option<T>) -> Self
Sets or clears the value of scope_info.
§Example
use google_cloud_chronicle_v1::model::ScopeInfo;
let x = ReferenceList::new().set_or_clear_scope_info(Some(ScopeInfo::default()/* use setters */));
let x = ReferenceList::new().set_or_clear_scope_info(None::<ScopeInfo>);Trait Implementations§
Source§impl Clone for ReferenceList
impl Clone for ReferenceList
Source§fn clone(&self) -> ReferenceList
fn clone(&self) -> ReferenceList
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more