#[non_exhaustive]pub struct ListDnsThreatDetectorsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
The message for requesting a list of DnsThreatDetectors in the 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.parent: StringRequired. The parent value for ListDnsThreatDetectorsRequest.
page_size: i32Optional. The requested page size. The server may return fewer items than requested. If unspecified, the server picks an appropriate default.
page_token: StringOptional. A page token received from a previous
ListDnsThreatDetectorsRequest call. Provide this to retrieve the
subsequent page.
Implementations§
Source§impl ListDnsThreatDetectorsRequest
impl ListDnsThreatDetectorsRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
ⓘ
let x = ListDnsThreatDetectorsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListDnsThreatDetectorsRequest
impl Clone for ListDnsThreatDetectorsRequest
Source§fn clone(&self) -> ListDnsThreatDetectorsRequest
fn clone(&self) -> ListDnsThreatDetectorsRequest
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 Default for ListDnsThreatDetectorsRequest
impl Default for ListDnsThreatDetectorsRequest
Source§fn default() -> ListDnsThreatDetectorsRequest
fn default() -> ListDnsThreatDetectorsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListDnsThreatDetectorsRequest
impl PartialEq for ListDnsThreatDetectorsRequest
Source§fn eq(&self, other: &ListDnsThreatDetectorsRequest) -> bool
fn eq(&self, other: &ListDnsThreatDetectorsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListDnsThreatDetectorsRequest
Auto Trait Implementations§
impl Freeze for ListDnsThreatDetectorsRequest
impl RefUnwindSafe for ListDnsThreatDetectorsRequest
impl Send for ListDnsThreatDetectorsRequest
impl Sync for ListDnsThreatDetectorsRequest
impl Unpin for ListDnsThreatDetectorsRequest
impl UnsafeUnpin for ListDnsThreatDetectorsRequest
impl UnwindSafe for ListDnsThreatDetectorsRequest
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