pub struct InternalVersioningServiceAsyncClient<T>(/* private fields */);
Expand description
These endpoints are not intended to be used directly by clients, since they require saving resource-specific state associated with new commits.
Implementations§
Source§impl<T> InternalVersioningServiceAsyncClient<T>where
T: AsyncClient,
impl<T> InternalVersioningServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn init_resource_versioning(
&self,
auth_: &BearerToken,
resource_rid: &ResourceIdentifier,
request: &InitResourceVersioningRequest,
) -> Result<BranchAndCommit, Error>
pub async fn init_resource_versioning( &self, auth_: &BearerToken, resource_rid: &ResourceIdentifier, request: &InitResourceVersioningRequest, ) -> Result<BranchAndCommit, Error>
Creates a root commit (no parents) and a “main” branch pointing to that commit, for the given resource. Throws if the resource already has a commit graph.
Sourcepub async fn save_working_state(
&self,
auth_: &BearerToken,
resource_rid: &ResourceIdentifier,
branch_name: &BranchName,
request: &SaveWorkingStateRequest,
) -> Result<BranchAndCommit, Error>
pub async fn save_working_state( &self, auth_: &BearerToken, resource_rid: &ResourceIdentifier, branch_name: &BranchName, request: &SaveWorkingStateRequest, ) -> Result<BranchAndCommit, Error>
Creates a non-permanent commit on the given branch, Throws if the branch doesn’t exist. Throws if latestCommit is passed and is not the latest commit.
Sourcepub async fn commit(
&self,
auth_: &BearerToken,
resource_rid: &ResourceIdentifier,
branch_name: &BranchName,
request: &CommitRequest,
) -> Result<BranchAndCommit, Error>
pub async fn commit( &self, auth_: &BearerToken, resource_rid: &ResourceIdentifier, branch_name: &BranchName, request: &CommitRequest, ) -> Result<BranchAndCommit, Error>
Creates a new permanent commit on the given branch. Throws if the branch doesn’t exist. Throws if latestCommit is passed and is not the latest commit.
Sourcepub async fn compact_commits(
&self,
auth_: &BearerToken,
resource_rid: &ResourceIdentifier,
request: &CompactCommitsRequest,
) -> Result<BTreeSet<CommitId>, Error>
pub async fn compact_commits( &self, auth_: &BearerToken, resource_rid: &ResourceIdentifier, request: &CompactCommitsRequest, ) -> Result<BTreeSet<CommitId>, Error>
Compacts the commit graph for the resource by deleting working state commits that match the provided strategy. Persists commits that are pointed to by branches. Returns the set of commits that were compacted. Throws if the resource doesn’t exist.
Trait Implementations§
Source§impl<T> AsyncService<T> for InternalVersioningServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for InternalVersioningServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for InternalVersioningServiceAsyncClient<T>
impl<T: Clone> Clone for InternalVersioningServiceAsyncClient<T>
Source§fn clone(&self) -> InternalVersioningServiceAsyncClient<T>
fn clone(&self) -> InternalVersioningServiceAsyncClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for InternalVersioningServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for InternalVersioningServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for InternalVersioningServiceAsyncClient<T>where
T: Send,
impl<T> Sync for InternalVersioningServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for InternalVersioningServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for InternalVersioningServiceAsyncClient<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request