pub struct CreateRequestProto {
pub src: String,
pub masked: FsPermissionProto,
pub client_name: String,
pub create_flag: u32,
pub create_parent: bool,
pub replication: u32,
pub block_size: u64,
pub crypto_protocol_version: Vec<i32>,
pub unmasked: Option<FsPermissionProto>,
pub ec_policy_name: Option<String>,
pub storage_policy: Option<String>,
}
Fields§
§src: String
§masked: FsPermissionProto
§client_name: String
§create_flag: u32
bits set using CreateFlag
create_parent: bool
§replication: u32
Short: Only 16 bits used
block_size: u64
§crypto_protocol_version: Vec<i32>
§unmasked: Option<FsPermissionProto>
§ec_policy_name: Option<String>
§storage_policy: Option<String>
Implementations§
Source§impl CreateRequestProto
impl CreateRequestProto
Sourcepub fn crypto_protocol_version(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<CryptoProtocolVersionProto>>
pub fn crypto_protocol_version( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<CryptoProtocolVersionProto>>
Returns an iterator which yields the valid enum values contained in crypto_protocol_version
.
Sourcepub fn push_crypto_protocol_version(
&mut self,
value: CryptoProtocolVersionProto,
)
pub fn push_crypto_protocol_version( &mut self, value: CryptoProtocolVersionProto, )
Appends the provided enum value to crypto_protocol_version
.
Sourcepub fn ec_policy_name(&self) -> &str
pub fn ec_policy_name(&self) -> &str
Returns the value of ec_policy_name
, or the default value if ec_policy_name
is unset.
Sourcepub fn storage_policy(&self) -> &str
pub fn storage_policy(&self) -> &str
Returns the value of storage_policy
, or the default value if storage_policy
is unset.
Trait Implementations§
Source§impl Clone for CreateRequestProto
impl Clone for CreateRequestProto
Source§fn clone(&self) -> CreateRequestProto
fn clone(&self) -> CreateRequestProto
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 CreateRequestProto
impl Debug for CreateRequestProto
Source§impl Default for CreateRequestProto
impl Default for CreateRequestProto
Source§impl Message for CreateRequestProto
impl Message for CreateRequestProto
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for CreateRequestProto
impl PartialEq for CreateRequestProto
impl StructuralPartialEq for CreateRequestProto
Auto Trait Implementations§
impl Freeze for CreateRequestProto
impl RefUnwindSafe for CreateRequestProto
impl Send for CreateRequestProto
impl Sync for CreateRequestProto
impl Unpin for CreateRequestProto
impl UnwindSafe for CreateRequestProto
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