Struct hadoop_proto::hadoop::hdfs::CreateEventProto
source · 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 copy 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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
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>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.source§impl PartialEq<CreateEventProto> for CreateEventProto
impl PartialEq<CreateEventProto> for CreateEventProto
source§fn eq(&self, other: &CreateEventProto) -> bool
fn eq(&self, other: &CreateEventProto) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateEventProto
Auto Trait Implementations§
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