Struct ys_core::initialize::DotYuanShen
source · pub struct DotYuanShen { /* private fields */ }Expand description
.ys 文件夹
Implementations§
source§impl DotYuanShen
impl DotYuanShen
sourcepub fn get_branch(&self) -> Result<String, YsError>
pub fn get_branch(&self) -> Result<String, YsError>
Get the current branch
pub fn get_branch_snapshot_id(&self, branch: &str) -> Result<ObjectID, YsError>
pub fn set_branch_snapshot_id( &self, branch: &str, object_id: ObjectID ) -> Result<(), YsError>
pub fn current_snapshot_id(&self) -> Result<ObjectID, YsError>
pub fn create_branch(&self, new_branch: &str) -> Result<(), YsError>
sourcepub fn branch_exists(&self, branch: &str) -> Result<bool, YsError>
pub fn branch_exists(&self, branch: &str) -> Result<bool, YsError>
Checks whether a branch with a given name exists
pub fn store(&self) -> Result<LocalObjectStore, YsError>
pub fn ignores(&self) -> Result<Ignores, YsError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DotYuanShen
impl RefUnwindSafe for DotYuanShen
impl Send for DotYuanShen
impl Sync for DotYuanShen
impl Unpin for DotYuanShen
impl UnwindSafe for DotYuanShen
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