Struct reinfer_client::Client [−][src]
pub struct Client { /* fields omitted */ }
Implementations
List all visible sources.
Get a source by either id or name.
pub fn create_source(
&self,
source_name: &SourceFullName,
options: NewSource<'_>
) -> Result<Source>
[src]
pub fn create_source(
&self,
source_name: &SourceFullName,
options: NewSource<'_>
) -> Result<Source>
[src]Create a new source.
pub fn update_source(
&self,
source_name: &SourceFullName,
options: UpdateSource<'_>
) -> Result<Source>
[src]
pub fn update_source(
&self,
source_name: &SourceFullName,
options: UpdateSource<'_>
) -> Result<Source>
[src]Update a source.
Delete a source.
pub fn delete_comments(
&self,
source: impl Into<SourceIdentifier>,
comments: &[CommentId]
) -> Result<()>
[src]
pub fn delete_comments(
&self,
source: impl Into<SourceIdentifier>,
comments: &[CommentId]
) -> Result<()>
[src]Delete comments by id in a source.
pub fn get_comments_iter_page(
&self,
source_name: &SourceFullName,
continuation: Option<&ContinuationKind>,
to_timestamp: Option<DateTime<Utc>>,
limit: usize
) -> Result<CommentsIterPage>
[src]
pub fn get_comments_iter_page(
&self,
source_name: &SourceFullName,
continuation: Option<&ContinuationKind>,
to_timestamp: Option<DateTime<Utc>>,
limit: usize
) -> Result<CommentsIterPage>
[src]Get a page of comments from a source.
pub fn get_comments_iter<'a>(
&'a self,
source_name: &'a SourceFullName,
page_size: Option<usize>,
timerange: CommentsIterTimerange
) -> CommentsIter<'a>ⓘNotable traits for CommentsIter<'a>
impl<'a> Iterator for CommentsIter<'a> type Item = Result<Vec<Comment>>;
[src]
pub fn get_comments_iter<'a>(
&'a self,
source_name: &'a SourceFullName,
page_size: Option<usize>,
timerange: CommentsIterTimerange
) -> CommentsIter<'a>ⓘNotable traits for CommentsIter<'a>
impl<'a> Iterator for CommentsIter<'a> type Item = Result<Vec<Comment>>;
[src]Iterate through all comments in a source.
pub fn put_comments(
&self,
source_name: &SourceFullName,
comments: &[NewComment]
) -> Result<PutCommentsResponse>
[src]pub fn sync_comments(
&self,
source_name: &SourceFullName,
comments: &[NewComment]
) -> Result<SyncCommentsResponse>
[src]pub fn put_emails(
&self,
bucket_name: &BucketFullName,
emails: &[NewEmail]
) -> Result<PutEmailsResponse>
[src]pub fn put_comment_audio(
&self,
source_id: &SourceId,
comment_id: &CommentId,
audio_path: impl AsRef<Path>
) -> Result<()>
[src]pub fn get_dataset<IdentifierT>(&self, dataset: IdentifierT) -> Result<Dataset> where
IdentifierT: Into<DatasetIdentifier>,
[src]pub fn create_dataset(
&self,
dataset_name: &DatasetFullName,
options: NewDataset<'_>
) -> Result<Dataset>
[src]
pub fn create_dataset(
&self,
dataset_name: &DatasetFullName,
options: NewDataset<'_>
) -> Result<Dataset>
[src]Create a dataset.
pub fn update_dataset(
&self,
dataset_name: &DatasetFullName,
options: UpdateDataset<'_>
) -> Result<Dataset>
[src]
pub fn update_dataset(
&self,
dataset_name: &DatasetFullName,
options: UpdateDataset<'_>
) -> Result<Dataset>
[src]Update a dataset.
pub fn delete_dataset<IdentifierT>(&self, dataset: IdentifierT) -> Result<()> where
IdentifierT: Into<DatasetIdentifier>,
[src]pub fn get_labellings<'a>(
&self,
dataset_name: &DatasetFullName,
comment_uids: impl Iterator<Item = &'a CommentUid>
) -> Result<Vec<AnnotatedComment>>
[src]
pub fn get_labellings<'a>(
&self,
dataset_name: &DatasetFullName,
comment_uids: impl Iterator<Item = &'a CommentUid>
) -> Result<Vec<AnnotatedComment>>
[src]Get labellings for a given a dataset and a list of comment UIDs.
pub fn get_labellings_iter<'a>(
&'a self,
dataset_name: &'a DatasetFullName,
source_id: &'a SourceId,
return_predictions: bool,
limit: Option<usize>
) -> LabellingsIter<'a>ⓘNotable traits for LabellingsIter<'a>
impl<'a> Iterator for LabellingsIter<'a> type Item = Result<Vec<AnnotatedComment>>;
[src]
pub fn get_labellings_iter<'a>(
&'a self,
dataset_name: &'a DatasetFullName,
source_id: &'a SourceId,
return_predictions: bool,
limit: Option<usize>
) -> LabellingsIter<'a>ⓘNotable traits for LabellingsIter<'a>
impl<'a> Iterator for LabellingsIter<'a> type Item = Result<Vec<AnnotatedComment>>;
[src]Iterate through all reviewed comments in a source.
pub fn get_labellings_in_bulk(
&self,
dataset_name: &DatasetFullName,
query_parameters: GetLabellingsInBulk<'_>
) -> Result<GetAnnotationsResponse>
[src]
pub fn get_labellings_in_bulk(
&self,
dataset_name: &DatasetFullName,
query_parameters: GetLabellingsInBulk<'_>
) -> Result<GetAnnotationsResponse>
[src]Get reviewed comments in bulk
pub fn update_labelling(
&self,
dataset_name: &DatasetFullName,
comment_uid: &CommentUid,
labelling: Option<&NewLabelling>,
entities: Option<&NewEntities>
) -> Result<AnnotatedComment>
[src]
pub fn update_labelling(
&self,
dataset_name: &DatasetFullName,
comment_uid: &CommentUid,
labelling: Option<&NewLabelling>,
entities: Option<&NewEntities>
) -> Result<AnnotatedComment>
[src]Update labellings for a given a dataset and comment UID.
pub fn get_recent_comments(
&self,
dataset_name: &DatasetFullName,
filter: &CommentFilter,
limit: usize,
continuation: Option<&Continuation>
) -> Result<RecentCommentsPage>
[src]pub fn create_bucket(
&self,
bucket_name: &BucketFullName,
options: NewBucket<'_>
) -> Result<Bucket>
[src]
pub fn create_bucket(
&self,
bucket_name: &BucketFullName,
options: NewBucket<'_>
) -> Result<Bucket>
[src]Create a new bucket.
pub fn get_bucket<IdentifierT>(&self, bucket: IdentifierT) -> Result<Bucket> where
IdentifierT: Into<BucketIdentifier>,
[src]pub fn delete_bucket<IdentifierT>(&self, bucket: IdentifierT) -> Result<()> where
IdentifierT: Into<BucketIdentifier>,
[src]pub fn fetch_trigger_comments(
&self,
trigger_name: &TriggerFullName,
size: u32
) -> Result<TriggerBatch>
[src]pub fn advance_trigger(
&self,
trigger_name: &TriggerFullName,
sequence_id: TriggerSequenceId
) -> Result<()>
[src]pub fn reset_trigger(
&self,
trigger_name: &TriggerFullName,
to_comment_created_at: DateTime<Utc>
) -> Result<()>
[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client