#[non_exhaustive]pub struct GenerateEphemeralCertRequest {
pub instance: String,
pub project: String,
pub public_key: String,
pub access_token: String,
pub read_time: Option<Timestamp>,
pub valid_duration: Option<Duration>,
/* private fields */
}
Expand description
Ephemeral certificate creation request.
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.instance: String
Cloud SQL instance ID. This does not include the project ID.
project: String
Project ID of the project that contains the instance.
public_key: String
PEM encoded public key to include in the signed certificate.
access_token: String
Optional. Access token to include in the signed certificate.
read_time: Option<Timestamp>
Optional. Optional snapshot read timestamp to trade freshness for performance.
valid_duration: Option<Duration>
Optional. If set, it will contain the cert valid duration.
Implementations§
Source§impl GenerateEphemeralCertRequest
impl GenerateEphemeralCertRequest
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sets the value of project.
Sourcepub fn set_public_key<T: Into<String>>(self, v: T) -> Self
pub fn set_public_key<T: Into<String>>(self, v: T) -> Self
Sets the value of public_key.
Sourcepub fn set_access_token<T: Into<String>>(self, v: T) -> Self
pub fn set_access_token<T: Into<String>>(self, v: T) -> Self
Sets the value of access_token.
Sourcepub fn set_read_time<T>(self, v: T) -> Self
pub fn set_read_time<T>(self, v: T) -> Self
Sets the value of read_time.
Sourcepub fn set_or_clear_read_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_read_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of read_time.
Sourcepub fn set_valid_duration<T>(self, v: T) -> Self
pub fn set_valid_duration<T>(self, v: T) -> Self
Sets the value of valid_duration.
Sourcepub fn set_or_clear_valid_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_valid_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of valid_duration.
Trait Implementations§
Source§impl Clone for GenerateEphemeralCertRequest
impl Clone for GenerateEphemeralCertRequest
Source§fn clone(&self) -> GenerateEphemeralCertRequest
fn clone(&self) -> GenerateEphemeralCertRequest
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 GenerateEphemeralCertRequest
impl Debug for GenerateEphemeralCertRequest
Source§impl Default for GenerateEphemeralCertRequest
impl Default for GenerateEphemeralCertRequest
Source§fn default() -> GenerateEphemeralCertRequest
fn default() -> GenerateEphemeralCertRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for GenerateEphemeralCertRequest
impl PartialEq for GenerateEphemeralCertRequest
Source§fn eq(&self, other: &GenerateEphemeralCertRequest) -> bool
fn eq(&self, other: &GenerateEphemeralCertRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GenerateEphemeralCertRequest
Auto Trait Implementations§
impl Freeze for GenerateEphemeralCertRequest
impl RefUnwindSafe for GenerateEphemeralCertRequest
impl Send for GenerateEphemeralCertRequest
impl Sync for GenerateEphemeralCertRequest
impl Unpin for GenerateEphemeralCertRequest
impl UnwindSafe for GenerateEphemeralCertRequest
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