pub struct ModelServiceClient<T> { /* private fields */ }
Implementations§
Source§impl<T> ModelServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
impl<T> ModelServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
Sourcepub async fn get_model(
&mut self,
request: impl IntoRequest<GetModelRequest>,
) -> Result<Response<Model>, Status>
pub async fn get_model( &mut self, request: impl IntoRequest<GetModelRequest>, ) -> Result<Response<Model>, Status>
Gets the specified model resource by model ID.
Sourcepub async fn list_models(
&mut self,
request: impl IntoRequest<ListModelsRequest>,
) -> Result<Response<ListModelsResponse>, Status>
pub async fn list_models( &mut self, request: impl IntoRequest<ListModelsRequest>, ) -> Result<Response<ListModelsResponse>, Status>
Lists all models in the specified dataset. Requires the READER dataset role.
Sourcepub async fn patch_model(
&mut self,
request: impl IntoRequest<PatchModelRequest>,
) -> Result<Response<Model>, Status>
pub async fn patch_model( &mut self, request: impl IntoRequest<PatchModelRequest>, ) -> Result<Response<Model>, Status>
Patch specific fields in the specified model.
Sourcepub async fn delete_model(
&mut self,
request: impl IntoRequest<DeleteModelRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_model( &mut self, request: impl IntoRequest<DeleteModelRequest>, ) -> Result<Response<()>, Status>
Deletes the model specified by modelId from the dataset.
Trait Implementations§
Source§impl<T: Clone> Clone for ModelServiceClient<T>
impl<T: Clone> Clone for ModelServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for ModelServiceClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ModelServiceClient<T>
impl<T> Send for ModelServiceClient<T>where
T: Send,
impl<T> Sync for ModelServiceClient<T>where
T: Sync,
impl<T> Unpin for ModelServiceClient<T>where
T: Unpin,
impl<T> !UnwindSafe for ModelServiceClient<T>
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> 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