pub struct DocsServiceClient<T> { /* private fields */ }Implementations§
Source§impl<T> DocsServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> DocsServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DocsServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn health( &mut self, request: impl IntoRequest<HealthRequest>, ) -> Result<Response<HealthResponse>, Status>
pub async fn create_space( &mut self, request: impl IntoRequest<CreateSpaceRequest>, ) -> Result<Response<Space>, Status>
pub async fn list_spaces( &mut self, request: impl IntoRequest<ListSpacesRequest>, ) -> Result<Response<ListSpacesResponse>, Status>
pub async fn upsert_node( &mut self, request: impl IntoRequest<UpsertNodeRequest>, ) -> Result<Response<Node>, Status>
pub async fn get_node( &mut self, request: impl IntoRequest<GetNodeRequest>, ) -> Result<Response<Node>, Status>
pub async fn list_children( &mut self, request: impl IntoRequest<ListChildrenRequest>, ) -> Result<Response<ListChildrenResponse>, Status>
pub async fn delete_node( &mut self, request: impl IntoRequest<DeleteNodeRequest>, ) -> Result<Response<DeleteNodeResponse>, Status>
pub async fn move_node( &mut self, request: impl IntoRequest<MoveNodeRequest>, ) -> Result<Response<Node>, Status>
pub async fn restore_node( &mut self, request: impl IntoRequest<RestoreNodeRequest>, ) -> Result<Response<Node>, Status>
pub async fn save_revision( &mut self, request: impl IntoRequest<SaveRevisionRequest>, ) -> Result<Response<Revision>, Status>
pub async fn list_revisions( &mut self, request: impl IntoRequest<ListRevisionsRequest>, ) -> Result<Response<ListRevisionsResponse>, Status>
pub async fn get_revision_index_status( &mut self, request: impl IntoRequest<GetRevisionIndexStatusRequest>, ) -> Result<Response<RevisionIndexState>, Status>
pub async fn retry_revision_index( &mut self, request: impl IntoRequest<RetryRevisionIndexRequest>, ) -> Result<Response<RevisionIndexState>, Status>
pub async fn set_acl( &mut self, request: impl IntoRequest<SetAclRequest>, ) -> Result<Response<AclEntry>, Status>
pub async fn revoke_acl( &mut self, request: impl IntoRequest<RevokeAclRequest>, ) -> Result<Response<RevokeAclResponse>, Status>
pub async fn list_acl( &mut self, request: impl IntoRequest<ListAclRequest>, ) -> Result<Response<ListAclResponse>, Status>
pub async fn create_invite( &mut self, request: impl IntoRequest<CreateInviteRequest>, ) -> Result<Response<Invite>, Status>
pub async fn list_invites( &mut self, request: impl IntoRequest<ListInvitesRequest>, ) -> Result<Response<ListInvitesResponse>, Status>
pub async fn revoke_invite( &mut self, request: impl IntoRequest<RevokeInviteRequest>, ) -> Result<Response<RevokeInviteResponse>, Status>
pub async fn accept_invite( &mut self, request: impl IntoRequest<AcceptInviteRequest>, ) -> Result<Response<AclEntry>, Status>
pub async fn create_asset( &mut self, request: impl IntoRequest<CreateAssetRequest>, ) -> Result<Response<Asset>, Status>
pub async fn publish_release( &mut self, request: impl IntoRequest<PublishReleaseRequest>, ) -> Result<Response<Release>, Status>
pub async fn get_release( &mut self, request: impl IntoRequest<GetReleaseRequest>, ) -> Result<Response<Release>, Status>
pub async fn search( &mut self, request: impl IntoRequest<SearchRequest>, ) -> Result<Response<SearchResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for DocsServiceClient<T>
impl<T: Clone> Clone for DocsServiceClient<T>
Source§fn clone(&self) -> DocsServiceClient<T>
fn clone(&self) -> DocsServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for DocsServiceClient<T>
impl<T> RefUnwindSafe for DocsServiceClient<T>where
Grpc<T>: RefUnwindSafe,
impl<T> Send for DocsServiceClient<T>
impl<T> Sync for DocsServiceClient<T>
impl<T> Unpin for DocsServiceClient<T>
impl<T> UnsafeUnpin for DocsServiceClient<T>where
Grpc<T>: UnsafeUnpin,
impl<T> UnwindSafe for DocsServiceClient<T>where
Grpc<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
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