pub struct VcsUseCases<'a, P: ?Sized> { /* private fields */ }Implementations§
Source§impl<'a, P: RuntimeVcsPort + ?Sized> VcsUseCases<'a, P>
impl<'a, P: RuntimeVcsPort + ?Sized> VcsUseCases<'a, P>
pub fn new(runtime: &'a P) -> Self
pub fn commit(&self, input: CreateCommitInput) -> RedDBResult<Commit>
pub fn branch_create(&self, input: CreateBranchInput) -> RedDBResult<Ref>
pub fn branch_list(&self) -> RedDBResult<Vec<Ref>>
pub fn branch_delete(&self, name: &str) -> RedDBResult<()>
pub fn tag(&self, input: CreateTagInput) -> RedDBResult<Ref>
pub fn tag_list(&self) -> RedDBResult<Vec<Ref>>
pub fn checkout(&self, input: CheckoutInput) -> RedDBResult<Ref>
pub fn merge(&self, input: MergeInput) -> RedDBResult<MergeOutcome>
pub fn cherry_pick( &self, connection_id: u64, commit: &str, author: Author, ) -> RedDBResult<MergeOutcome>
pub fn revert( &self, connection_id: u64, commit: &str, author: Author, ) -> RedDBResult<Commit>
pub fn reset(&self, input: ResetInput) -> RedDBResult<()>
pub fn log(&self, input: LogInput) -> RedDBResult<Vec<Commit>>
pub fn diff(&self, input: DiffInput) -> RedDBResult<Diff>
pub fn status(&self, input: StatusInput) -> RedDBResult<Status>
pub fn lca(&self, a: &str, b: &str) -> RedDBResult<Option<CommitHash>>
pub fn conflicts_list(&self, merge_state_id: &str) -> RedDBResult<Vec<Conflict>>
pub fn conflict_resolve( &self, conflict_id: &str, resolved: JsonValue, ) -> RedDBResult<()>
pub fn resolve_as_of(&self, spec: AsOfSpec) -> RedDBResult<Xid>
Sourcepub fn set_versioned(&self, collection: &str, enabled: bool) -> RedDBResult<()>
pub fn set_versioned(&self, collection: &str, enabled: bool) -> RedDBResult<()>
Opt a user collection into Git-for-Data. Once flagged, the collection participates in merge / diff / AS OF semantics.
Sourcepub fn list_versioned(&self) -> RedDBResult<Vec<String>>
pub fn list_versioned(&self) -> RedDBResult<Vec<String>>
List every user collection currently opted into VCS.
Sourcepub fn is_versioned(&self, collection: &str) -> RedDBResult<bool>
pub fn is_versioned(&self, collection: &str) -> RedDBResult<bool>
Is this user collection opted in?
Sourcepub fn resolve_commitish(&self, spec: &str) -> RedDBResult<CommitHash>
pub fn resolve_commitish(&self, spec: &str) -> RedDBResult<CommitHash>
Resolve a short ref / commit prefix / branch / tag to a full commit hash. Primary caller is the query parser’s AS OF path.
Auto Trait Implementations§
impl<'a, P> Freeze for VcsUseCases<'a, P>where
P: ?Sized,
impl<'a, P> RefUnwindSafe for VcsUseCases<'a, P>where
P: RefUnwindSafe + ?Sized,
impl<'a, P> Send for VcsUseCases<'a, P>
impl<'a, P> Sync for VcsUseCases<'a, P>
impl<'a, P> Unpin for VcsUseCases<'a, P>where
P: ?Sized,
impl<'a, P> UnsafeUnpin for VcsUseCases<'a, P>where
P: ?Sized,
impl<'a, P> UnwindSafe for VcsUseCases<'a, P>where
P: RefUnwindSafe + ?Sized,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request