pub struct BranchContents {
pub parent_branch: Option<String>,
pub parent_version: i64,
pub create_at: i64,
pub manifest_size: i64,
pub metadata: Option<HashMap<String, String>>,
}Fields§
§parent_branch: Option<String>Name of the branch this branch was created from. Absent when the branch was created from the main branch.
parent_version: i64Version of the parent (branch or main) this branch was created from
create_at: i64Unix timestamp (in seconds) when the branch was created
manifest_size: i64Size of the branch’s manifest file in bytes
metadata: Option<HashMap<String, String>>Key-value metadata associated with the branch
Implementations§
Trait Implementations§
Source§impl Clone for BranchContents
impl Clone for BranchContents
Source§fn clone(&self) -> BranchContents
fn clone(&self) -> BranchContents
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BranchContents
impl Debug for BranchContents
Source§impl Default for BranchContents
impl Default for BranchContents
Source§fn default() -> BranchContents
fn default() -> BranchContents
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BranchContents
impl<'de> Deserialize<'de> for BranchContents
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BranchContents, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BranchContents, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BranchContents
impl PartialEq for BranchContents
Source§fn eq(&self, other: &BranchContents) -> bool
fn eq(&self, other: &BranchContents) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BranchContents
impl Serialize for BranchContents
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BranchContents
Auto Trait Implementations§
impl Freeze for BranchContents
impl RefUnwindSafe for BranchContents
impl Send for BranchContents
impl Sync for BranchContents
impl Unpin for BranchContents
impl UnsafeUnpin for BranchContents
impl UnwindSafe for BranchContents
Blanket Implementations§
impl<T> Allocation for T
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