#[non_exhaustive]pub struct UrlList {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub values: Vec<String>,
/* private fields */
}Expand description
UrlList proto helps users to set reusable, independently manageable lists of hosts, host patterns, URLs, URL patterns.
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.name: StringRequired. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^a-z?$).
create_time: Option<Timestamp>Output only. Time when the security policy was created.
update_time: Option<Timestamp>Output only. Time when the security policy was updated.
description: StringOptional. Free-text description of the resource.
values: Vec<String>Required. FQDNs and URLs.
Implementations§
Source§impl UrlList
impl UrlList
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = UrlList::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = UrlList::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = UrlList::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = UrlList::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = UrlList::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = UrlList::new().set_or_clear_update_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_values<T, V>(self, v: T) -> Self
pub fn set_values<T, V>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for UrlList
Auto Trait Implementations§
impl Freeze for UrlList
impl RefUnwindSafe for UrlList
impl Send for UrlList
impl Sync for UrlList
impl Unpin for UrlList
impl UnsafeUnpin for UrlList
impl UnwindSafe for UrlList
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