pub struct CreateEventProto {
pub type: i32,
pub path: String,
pub ctime: i64,
pub owner_name: String,
pub group_name: String,
pub perms: FsPermissionProto,
pub replication: Option<i32>,
pub symlink_target: Option<String>,
pub overwrite: Option<bool>,
pub default_block_size: Option<i64>,
pub erasure_coded: Option<bool>,
}
Fields§
§type: i32
§path: String
§ctime: i64
§owner_name: String
§group_name: String
§perms: FsPermissionProto
§replication: Option<i32>
§symlink_target: Option<String>
§overwrite: Option<bool>
§default_block_size: Option<i64>
§erasure_coded: Option<bool>
Implementations§
Source§impl CreateEventProto
impl CreateEventProto
Sourcepub fn type(&self) -> INodeType
pub fn type(&self) -> INodeType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
Sourcepub fn replication(&self) -> i32
pub fn replication(&self) -> i32
Returns the value of replication
, or the default value if replication
is unset.
Sourcepub fn symlink_target(&self) -> &str
pub fn symlink_target(&self) -> &str
Returns the value of symlink_target
, or the default value if symlink_target
is unset.
Sourcepub fn overwrite(&self) -> bool
pub fn overwrite(&self) -> bool
Returns the value of overwrite
, or the default value if overwrite
is unset.
Sourcepub fn default_block_size(&self) -> i64
pub fn default_block_size(&self) -> i64
Returns the value of default_block_size
, or the default value if default_block_size
is unset.
Sourcepub fn erasure_coded(&self) -> bool
pub fn erasure_coded(&self) -> bool
Returns the value of erasure_coded
, or the default value if erasure_coded
is unset.
Trait Implementations§
Source§impl Clone for CreateEventProto
impl Clone for CreateEventProto
Source§fn clone(&self) -> CreateEventProto
fn clone(&self) -> CreateEventProto
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 CreateEventProto
impl Debug for CreateEventProto
Source§impl Default for CreateEventProto
impl Default for CreateEventProto
Source§impl Message for CreateEventProto
impl Message for CreateEventProto
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 CreateEventProto
impl PartialEq for CreateEventProto
impl StructuralPartialEq for CreateEventProto
Auto Trait Implementations§
impl Freeze for CreateEventProto
impl RefUnwindSafe for CreateEventProto
impl Send for CreateEventProto
impl Sync for CreateEventProto
impl Unpin for CreateEventProto
impl UnwindSafe for CreateEventProto
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