pub struct VcsUseCases<'a, P>where
P: ?Sized,{ /* private fields */ }Implementations§
Source§impl<'a, P> VcsUseCases<'a, P>where
P: RuntimeVcsPort + ?Sized,
impl<'a, P> VcsUseCases<'a, P>where
P: RuntimeVcsPort + ?Sized,
pub fn new(runtime: &'a P) -> VcsUseCases<'a, P>
pub fn commit(&self, input: CreateCommitInput) -> Result<Commit, RedDBError>
pub fn branch_create(&self, input: CreateBranchInput) -> Result<Ref, RedDBError>
pub fn branch_list(&self) -> Result<Vec<Ref>, RedDBError>
pub fn branch_delete(&self, name: &str) -> Result<(), RedDBError>
pub fn tag(&self, input: CreateTagInput) -> Result<Ref, RedDBError>
pub fn tag_list(&self) -> Result<Vec<Ref>, RedDBError>
pub fn checkout(&self, input: CheckoutInput) -> Result<Ref, RedDBError>
pub fn merge(&self, input: MergeInput) -> Result<MergeOutcome, RedDBError>
pub fn cherry_pick( &self, connection_id: u64, commit: &str, author: Author, ) -> Result<MergeOutcome, RedDBError>
pub fn revert( &self, connection_id: u64, commit: &str, author: Author, ) -> Result<Commit, RedDBError>
pub fn reset(&self, input: ResetInput) -> Result<(), RedDBError>
pub fn log(&self, input: LogInput) -> Result<Vec<Commit>, RedDBError>
pub fn diff(&self, input: DiffInput) -> Result<Diff, RedDBError>
pub fn status(&self, input: StatusInput) -> Result<Status, RedDBError>
pub fn lca(&self, a: &str, b: &str) -> Result<Option<String>, RedDBError>
pub fn conflicts_list( &self, merge_state_id: &str, ) -> Result<Vec<Conflict>, RedDBError>
pub fn conflict_resolve( &self, conflict_id: &str, resolved: Value, ) -> Result<(), RedDBError>
pub fn resolve_as_of(&self, spec: AsOfSpec) -> Result<u64, RedDBError>
Sourcepub fn set_versioned(
&self,
collection: &str,
enabled: bool,
) -> Result<(), RedDBError>
pub fn set_versioned( &self, collection: &str, enabled: bool, ) -> Result<(), RedDBError>
Opt a user collection into Git-for-Data. Once flagged, the collection participates in merge / diff / AS OF semantics.
Sourcepub fn list_versioned(&self) -> Result<Vec<String>, RedDBError>
pub fn list_versioned(&self) -> Result<Vec<String>, RedDBError>
List every user collection currently opted into VCS.
Sourcepub fn is_versioned(&self, collection: &str) -> Result<bool, RedDBError>
pub fn is_versioned(&self, collection: &str) -> Result<bool, RedDBError>
Is this user collection opted in?
Sourcepub fn resolve_commitish(&self, spec: &str) -> Result<String, RedDBError>
pub fn resolve_commitish(&self, spec: &str) -> Result<String, RedDBError>
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