pub struct TreeEntry {
pub name: String,
pub kind: i32,
pub hash: Vec<u8>,
pub size: u64,
pub change_status: i32,
pub descendant_changed: bool,
pub last_changed_at: Option<Timestamp>,
pub last_changed_by: Option<StatePrincipal>,
}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.
last_changed_at: Option<Timestamp>When this entry last changed. Absent when the server has no provenance data for the entry; present means the commit/state time that last touched it (weft#1778).
last_changed_by: Option<StatePrincipal>Author/identity that last changed this entry, reusing the same principal shape as StateSummary.principal. Absent alongside last_changed_at when the server has no provenance data (weft#1778).
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
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.