pub struct TreeEntry {
pub name: String,
pub kind: i32,
pub hash: Vec<u8>,
pub size: u64,
pub change_status: i32,
pub descendant_changed: bool,
}Fields§
§name: String§kind: i32§hash: Vec<u8>§size: u64Blob content length in bytes. 0 for TREE entries and for any kind whose size the server did not resolve; absent = 0 = today’s behavior, where no size is carried at all.
change_status: i32Set only when GetTreeRequest.status_base is present; UNSPECIFIED otherwise, which is today’s behavior.
descendant_changed: boolDirectory entries only: some entry below this tree has a change_status other than UNSPECIFIED against status_base. Always false for leaf kinds and whenever status_base is absent.
Implementations§
Source§impl TreeEntry
impl TreeEntry
Sourcepub fn kind(&self) -> TreeEntryKind
pub fn kind(&self) -> TreeEntryKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: TreeEntryKind)
pub fn set_kind(&mut self, value: TreeEntryKind)
Sets kind to the provided enum value.
Sourcepub fn change_status(&self) -> TreeEntryChangeStatus
pub fn change_status(&self) -> TreeEntryChangeStatus
Returns the enum value of change_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_change_status(&mut self, value: TreeEntryChangeStatus)
pub fn set_change_status(&mut self, value: TreeEntryChangeStatus)
Sets change_status to the provided enum value.
Trait Implementations§
impl Eq for TreeEntry
Source§impl Message for TreeEntry
impl Message for TreeEntry
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.impl StructuralPartialEq for TreeEntry
Auto Trait Implementations§
impl Freeze for TreeEntry
impl RefUnwindSafe for TreeEntry
impl Send for TreeEntry
impl Sync for TreeEntry
impl Unpin for TreeEntry
impl UnsafeUnpin for TreeEntry
impl UnwindSafe for TreeEntry
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