pub struct InternalVersioningServiceClient<C> { /* private fields */ }Trait Implementations§
Source§impl<C: Clone> Clone for InternalVersioningServiceClient<C>
impl<C: Clone> Clone for InternalVersioningServiceClient<C>
Source§fn clone(&self) -> InternalVersioningServiceClient<C>
fn clone(&self) -> InternalVersioningServiceClient<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug> Debug for InternalVersioningServiceClient<C>
impl<C: Debug> Debug for InternalVersioningServiceClient<C>
Source§impl<I: Iterator<Item = Result<Bytes, Error>>, __C> InternalVersioningService<I> for InternalVersioningServiceClient<__C>where
__C: Client<ResponseBody = I>,
impl<I: Iterator<Item = Result<Bytes, Error>>, __C> InternalVersioningService<I> for InternalVersioningServiceClient<__C>where
__C: Client<ResponseBody = I>,
Source§fn init_resource_versioning(
&self,
auth_: &BearerToken,
resource_rid: &ResourceIdentifier,
request: &InitResourceVersioningRequest,
) -> Result<BranchAndCommit, Error>
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.
Source§fn save_working_state(
&self,
auth_: &BearerToken,
resource_rid: &ResourceIdentifier,
branch_name: &BranchName,
request: &SaveWorkingStateRequest,
) -> Result<BranchAndCommit, Error>
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.
Source§fn commit(
&self,
auth_: &BearerToken,
resource_rid: &ResourceIdentifier,
branch_name: &BranchName,
request: &CommitRequest,
) -> Result<BranchAndCommit, Error>
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.
Source§fn compact_commits(
&self,
auth_: &BearerToken,
resource_rid: &ResourceIdentifier,
request: &CompactCommitsRequest,
) -> Result<BTreeSet<CommitId>, Error>
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.
Source§impl<C> Service<C> for InternalVersioningServiceClient<C>
impl<C> Service<C> for InternalVersioningServiceClient<C>
Source§fn new(client: C, runtime: &Arc<ConjureRuntime>) -> Self
fn new(client: C, runtime: &Arc<ConjureRuntime>) -> Self
Creates a new service wrapping an HTTP client.
Auto Trait Implementations§
impl<C> Freeze for InternalVersioningServiceClient<C>where
C: Freeze,
impl<C> !RefUnwindSafe for InternalVersioningServiceClient<C>
impl<C> Send for InternalVersioningServiceClient<C>where
C: Send,
impl<C> Sync for InternalVersioningServiceClient<C>where
C: Sync,
impl<C> Unpin for InternalVersioningServiceClient<C>where
C: Unpin,
impl<C> UnsafeUnpin for InternalVersioningServiceClient<C>where
C: UnsafeUnpin,
impl<C> !UnwindSafe for InternalVersioningServiceClient<C>
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> 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>
Wrap the input message
T in a tonic::Request