Skip to main content

DocsService

Trait DocsService 

Source
pub trait DocsService:
    Send
    + Sync
    + 'static {
Show 24 methods // Required methods fn health<'life0, 'async_trait>( &'life0 self, request: Request<HealthRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_space<'life0, 'async_trait>( &'life0 self, request: Request<CreateSpaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Space>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_spaces<'life0, 'async_trait>( &'life0 self, request: Request<ListSpacesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListSpacesResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn upsert_node<'life0, 'async_trait>( &'life0 self, request: Request<UpsertNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Node>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_node<'life0, 'async_trait>( &'life0 self, request: Request<GetNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Node>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_children<'life0, 'async_trait>( &'life0 self, request: Request<ListChildrenRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListChildrenResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_node<'life0, 'async_trait>( &'life0 self, request: Request<DeleteNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteNodeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn move_node<'life0, 'async_trait>( &'life0 self, request: Request<MoveNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Node>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn restore_node<'life0, 'async_trait>( &'life0 self, request: Request<RestoreNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Node>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn save_revision<'life0, 'async_trait>( &'life0 self, request: Request<SaveRevisionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Revision>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_revisions<'life0, 'async_trait>( &'life0 self, request: Request<ListRevisionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListRevisionsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_revision_index_status<'life0, 'async_trait>( &'life0 self, request: Request<GetRevisionIndexStatusRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RevisionIndexState>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn retry_revision_index<'life0, 'async_trait>( &'life0 self, request: Request<RetryRevisionIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RevisionIndexState>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_acl<'life0, 'async_trait>( &'life0 self, request: Request<SetAclRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AclEntry>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn revoke_acl<'life0, 'async_trait>( &'life0 self, request: Request<RevokeAclRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RevokeAclResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_acl<'life0, 'async_trait>( &'life0 self, request: Request<ListAclRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListAclResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_invite<'life0, 'async_trait>( &'life0 self, request: Request<CreateInviteRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Invite>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_invites<'life0, 'async_trait>( &'life0 self, request: Request<ListInvitesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListInvitesResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn revoke_invite<'life0, 'async_trait>( &'life0 self, request: Request<RevokeInviteRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RevokeInviteResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn accept_invite<'life0, 'async_trait>( &'life0 self, request: Request<AcceptInviteRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AclEntry>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_asset<'life0, 'async_trait>( &'life0 self, request: Request<CreateAssetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Asset>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn publish_release<'life0, 'async_trait>( &'life0 self, request: Request<PublishReleaseRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Release>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_release<'life0, 'async_trait>( &'life0 self, request: Request<GetReleaseRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Release>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn search<'life0, 'async_trait>( &'life0 self, request: Request<SearchRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with DocsServiceServer.

Required Methods§

Source

fn health<'life0, 'async_trait>( &'life0 self, request: Request<HealthRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_space<'life0, 'async_trait>( &'life0 self, request: Request<CreateSpaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Space>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_spaces<'life0, 'async_trait>( &'life0 self, request: Request<ListSpacesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListSpacesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn upsert_node<'life0, 'async_trait>( &'life0 self, request: Request<UpsertNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Node>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_node<'life0, 'async_trait>( &'life0 self, request: Request<GetNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Node>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_children<'life0, 'async_trait>( &'life0 self, request: Request<ListChildrenRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListChildrenResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_node<'life0, 'async_trait>( &'life0 self, request: Request<DeleteNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteNodeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn move_node<'life0, 'async_trait>( &'life0 self, request: Request<MoveNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Node>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn restore_node<'life0, 'async_trait>( &'life0 self, request: Request<RestoreNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Node>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn save_revision<'life0, 'async_trait>( &'life0 self, request: Request<SaveRevisionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Revision>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_revisions<'life0, 'async_trait>( &'life0 self, request: Request<ListRevisionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListRevisionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_revision_index_status<'life0, 'async_trait>( &'life0 self, request: Request<GetRevisionIndexStatusRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RevisionIndexState>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn retry_revision_index<'life0, 'async_trait>( &'life0 self, request: Request<RetryRevisionIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RevisionIndexState>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn set_acl<'life0, 'async_trait>( &'life0 self, request: Request<SetAclRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AclEntry>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn revoke_acl<'life0, 'async_trait>( &'life0 self, request: Request<RevokeAclRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RevokeAclResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_acl<'life0, 'async_trait>( &'life0 self, request: Request<ListAclRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListAclResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_invite<'life0, 'async_trait>( &'life0 self, request: Request<CreateInviteRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Invite>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_invites<'life0, 'async_trait>( &'life0 self, request: Request<ListInvitesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListInvitesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn revoke_invite<'life0, 'async_trait>( &'life0 self, request: Request<RevokeInviteRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RevokeInviteResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn accept_invite<'life0, 'async_trait>( &'life0 self, request: Request<AcceptInviteRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AclEntry>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_asset<'life0, 'async_trait>( &'life0 self, request: Request<CreateAssetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Asset>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn publish_release<'life0, 'async_trait>( &'life0 self, request: Request<PublishReleaseRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Release>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_release<'life0, 'async_trait>( &'life0 self, request: Request<GetReleaseRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Release>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn search<'life0, 'async_trait>( &'life0 self, request: Request<SearchRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§