pub struct CreateRecipientRequest {
pub name: String,
pub authentication_type: i32,
pub owner: String,
pub comment: Option<String>,
pub properties: HashMap<String, String>,
pub expiration_time: Option<i64>,
}Expand description
Creates a new recipient
Fields§
§name: StringName of the recipient.
authentication_type: i32The delta sharing authentication type.
owner: StringUsername of the recipient owner.
comment: Option<String>Description about the recipient.
properties: HashMap<String, String>Recipient properties as map of string key-value pairs.
When provided in update request, the specified properties will override the existing properties. To add and remove properties, one would need to perform a read-modify-write.
expiration_time: Option<i64>Expiration timestamp of the token, in epoch milliseconds.
Implementations§
Source§impl CreateRecipientRequest
impl CreateRecipientRequest
Sourcepub fn authentication_type(&self) -> AuthenticationType
pub fn authentication_type(&self) -> AuthenticationType
Returns the enum value of authentication_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_authentication_type(&mut self, value: AuthenticationType)
pub fn set_authentication_type(&mut self, value: AuthenticationType)
Sets authentication_type to the provided enum value.
Sourcepub fn comment(&self) -> &str
pub fn comment(&self) -> &str
Returns the value of comment, or the default value if comment is unset.
Sourcepub fn expiration_time(&self) -> i64
pub fn expiration_time(&self) -> i64
Returns the value of expiration_time, or the default value if expiration_time is unset.
Trait Implementations§
Source§impl Clone for CreateRecipientRequest
impl Clone for CreateRecipientRequest
Source§fn clone(&self) -> CreateRecipientRequest
fn clone(&self) -> CreateRecipientRequest
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 CreateRecipientRequest
impl Debug for CreateRecipientRequest
Source§impl Default for CreateRecipientRequest
impl Default for CreateRecipientRequest
§impl<'de> Deserialize<'de> for CreateRecipientRequest
impl<'de> Deserialize<'de> for CreateRecipientRequest
§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
Source§impl Message for CreateRecipientRequest
impl Message for CreateRecipientRequest
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 CreateRecipientRequest
impl PartialEq for CreateRecipientRequest
§impl Serialize for CreateRecipientRequest
impl Serialize for CreateRecipientRequest
impl StructuralPartialEq for CreateRecipientRequest
Auto Trait Implementations§
impl Freeze for CreateRecipientRequest
impl RefUnwindSafe for CreateRecipientRequest
impl Send for CreateRecipientRequest
impl Sync for CreateRecipientRequest
impl Unpin for CreateRecipientRequest
impl UnsafeUnpin for CreateRecipientRequest
impl UnwindSafe for CreateRecipientRequest
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