#[non_exhaustive]pub struct ListCertificatesResponse {
pub certificates: Vec<Certificate>,
pub next_page_token: String,
pub unreachable: Vec<String>,
/* private fields */
}Expand description
Response message for CertificateAuthorityService.ListCertificates.
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.certificates: Vec<Certificate>The list of Certificates.
next_page_token: StringA token to retrieve next page of results. Pass this value in ListCertificatesRequest.page_token to retrieve the next page of results.
unreachable: Vec<String>A list of locations (e.g. “us-west1”) that could not be reached.
Implementations§
Source§impl ListCertificatesResponse
impl ListCertificatesResponse
pub fn new() -> Self
Sourcepub fn set_certificates<T, V>(self, v: T) -> Self
pub fn set_certificates<T, V>(self, v: T) -> Self
Sets the value of certificates.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::Certificate;
let x = ListCertificatesResponse::new()
.set_certificates([
Certificate::default()/* use setters */,
Certificate::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListCertificatesResponse::new().set_next_page_token("example");Sourcepub fn set_unreachable<T, V>(self, v: T) -> Self
pub fn set_unreachable<T, V>(self, v: T) -> Self
Sets the value of unreachable.
§Example
ⓘ
let x = ListCertificatesResponse::new().set_unreachable(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ListCertificatesResponse
impl Clone for ListCertificatesResponse
Source§fn clone(&self) -> ListCertificatesResponse
fn clone(&self) -> ListCertificatesResponse
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 ListCertificatesResponse
impl Debug for ListCertificatesResponse
Source§impl Default for ListCertificatesResponse
impl Default for ListCertificatesResponse
Source§fn default() -> ListCertificatesResponse
fn default() -> ListCertificatesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListCertificatesResponse
impl Message for ListCertificatesResponse
Source§impl PartialEq for ListCertificatesResponse
impl PartialEq for ListCertificatesResponse
impl StructuralPartialEq for ListCertificatesResponse
Auto Trait Implementations§
impl Freeze for ListCertificatesResponse
impl RefUnwindSafe for ListCertificatesResponse
impl Send for ListCertificatesResponse
impl Sync for ListCertificatesResponse
impl Unpin for ListCertificatesResponse
impl UnwindSafe for ListCertificatesResponse
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