pub struct ListCredentialsRequest {
pub purpose: Option<i32>,
pub max_results: Option<i32>,
pub page_token: Option<String>,
}Fields§
§purpose: Option<i32>Return only credentials for the specified purpose.
max_results: Option<i32>The maximum number of results per page that should be returned.
page_token: Option<String>Opaque pagination token to go to next page based on previous query.
Implementations§
Source§impl ListCredentialsRequest
impl ListCredentialsRequest
Sourcepub fn purpose(&self) -> Purpose
pub fn purpose(&self) -> Purpose
Returns the enum value of purpose, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_purpose(&mut self, value: Purpose)
pub fn set_purpose(&mut self, value: Purpose)
Sets purpose to the provided enum value.
Sourcepub fn max_results(&self) -> i32
pub fn max_results(&self) -> i32
Returns the value of max_results, or the default value if max_results is unset.
Sourcepub fn page_token(&self) -> &str
pub fn page_token(&self) -> &str
Returns the value of page_token, or the default value if page_token is unset.
Trait Implementations§
Source§impl Clone for ListCredentialsRequest
impl Clone for ListCredentialsRequest
Source§fn clone(&self) -> ListCredentialsRequest
fn clone(&self) -> ListCredentialsRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ListCredentialsRequest
impl Debug for ListCredentialsRequest
Source§impl Default for ListCredentialsRequest
impl Default for ListCredentialsRequest
§impl<'de> Deserialize<'de> for ListCredentialsRequest
impl<'de> Deserialize<'de> for ListCredentialsRequest
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ListCredentialsRequest
Source§impl Hash for ListCredentialsRequest
impl Hash for ListCredentialsRequest
Source§impl Message for ListCredentialsRequest
impl Message for ListCredentialsRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ListCredentialsRequest
impl PartialEq for ListCredentialsRequest
§impl Serialize for ListCredentialsRequest
impl Serialize for ListCredentialsRequest
impl StructuralPartialEq for ListCredentialsRequest
Auto Trait Implementations§
impl Freeze for ListCredentialsRequest
impl RefUnwindSafe for ListCredentialsRequest
impl Send for ListCredentialsRequest
impl Sync for ListCredentialsRequest
impl Unpin for ListCredentialsRequest
impl UnsafeUnpin for ListCredentialsRequest
impl UnwindSafe for ListCredentialsRequest
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