#[non_exhaustive]pub struct BookmarkRef {
pub name: String,
pub remote: Option<String>,
pub target: String,
pub tracked: bool,
}Expand description
A bookmark from jj bookmark list -a — local or remote-tracking.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringBookmark name.
remote: Option<String>The remote it lives on (e.g. origin/git); None for a local bookmark.
target: StringShort id of the commit it points at (empty for a conflicted bookmark).
tracked: boolWhether this remote-tracking bookmark is tracked (false for locals).
Trait Implementations§
Source§impl Clone for BookmarkRef
impl Clone for BookmarkRef
Source§fn clone(&self) -> BookmarkRef
fn clone(&self) -> BookmarkRef
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 BookmarkRef
impl Debug for BookmarkRef
impl Eq for BookmarkRef
Source§impl PartialEq for BookmarkRef
impl PartialEq for BookmarkRef
Source§fn eq(&self, other: &BookmarkRef) -> bool
fn eq(&self, other: &BookmarkRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BookmarkRef
Auto Trait Implementations§
impl Freeze for BookmarkRef
impl RefUnwindSafe for BookmarkRef
impl Send for BookmarkRef
impl Sync for BookmarkRef
impl Unpin for BookmarkRef
impl UnsafeUnpin for BookmarkRef
impl UnwindSafe for BookmarkRef
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