pub struct CreateProviderRequest {
pub name: String,
pub authentication_type: i32,
pub owner: Option<String>,
pub comment: Option<String>,
pub recipient_profile_str: Option<String>,
pub properties: HashMap<String, String>,
}Expand description
Creates a new provider
Fields§
§name: StringName of the provider.
authentication_type: i32The delta sharing authentication type.
owner: Option<String>Username of the provider owner.
comment: Option<String>Description about the provider.
recipient_profile_str: Option<String>The recipient profile (credential file contents) used to connect to the sharing server, required for TOKEN authentication.
properties: HashMap<String, String>Provider properties as map of string key-value pairs.
Implementations§
Source§impl CreateProviderRequest
impl CreateProviderRequest
Sourcepub fn authentication_type(&self) -> ProviderAuthenticationType
pub fn authentication_type(&self) -> ProviderAuthenticationType
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: ProviderAuthenticationType)
pub fn set_authentication_type(&mut self, value: ProviderAuthenticationType)
Sets authentication_type to the provided enum value.
Sourcepub fn owner(&self) -> &str
pub fn owner(&self) -> &str
Returns the value of owner, or the default value if owner is unset.
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 recipient_profile_str(&self) -> &str
pub fn recipient_profile_str(&self) -> &str
Returns the value of recipient_profile_str, or the default value if recipient_profile_str is unset.
Trait Implementations§
Source§impl Clone for CreateProviderRequest
impl Clone for CreateProviderRequest
Source§fn clone(&self) -> CreateProviderRequest
fn clone(&self) -> CreateProviderRequest
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 CreateProviderRequest
impl Debug for CreateProviderRequest
Source§impl Default for CreateProviderRequest
impl Default for CreateProviderRequest
§impl<'de> Deserialize<'de> for CreateProviderRequest
impl<'de> Deserialize<'de> for CreateProviderRequest
§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 CreateProviderRequest
impl Message for CreateProviderRequest
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 CreateProviderRequest
impl PartialEq for CreateProviderRequest
§impl Serialize for CreateProviderRequest
impl Serialize for CreateProviderRequest
impl StructuralPartialEq for CreateProviderRequest
Auto Trait Implementations§
impl Freeze for CreateProviderRequest
impl RefUnwindSafe for CreateProviderRequest
impl Send for CreateProviderRequest
impl Sync for CreateProviderRequest
impl Unpin for CreateProviderRequest
impl UnsafeUnpin for CreateProviderRequest
impl UnwindSafe for CreateProviderRequest
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