pub struct KgBranch {
pub namespace: String,
pub name: String,
pub head_id: SnapshotId,
pub created_at: i64,
pub updated_at: i64,
}Expand description
Named mutable pointer to a snapshot within a namespace.
Composite primary key: (namespace, name).
The default branch is "main".
Fields§
§namespace: StringNamespace this branch lives in.
name: StringBranch name — alphanumeric, hyphens, underscores.
head_id: SnapshotIdThe snapshot this branch currently points to.
created_at: i64Unix microseconds when the branch was first created.
updated_at: i64Unix microseconds of the last HEAD update.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KgBranch
impl<'de> Deserialize<'de> for KgBranch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KgBranch
impl RefUnwindSafe for KgBranch
impl Send for KgBranch
impl Sync for KgBranch
impl Unpin for KgBranch
impl UnsafeUnpin for KgBranch
impl UnwindSafe for KgBranch
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