pub struct TranslationImportQueueEntries(/* private fields */);Expand description
A set of files to be imported into Rosetta.
Implementations§
Source§impl TranslationImportQueueEntries
impl TranslationImportQueueEntries
Sourcepub fn iter<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, TranslationImportQueueEntryPage>, Error>
pub fn iter<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, TranslationImportQueueEntryPage>, Error>
Get a paged collection of TranslationImportQueueEntryPage.
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
Sourcepub fn get_all_entries<'a>(
&self,
client: &'a dyn Client,
import_status: Option<&ImportStatus>,
) -> Result<PagedCollection<'a, TranslationImportQueueEntryPage>, Error>
pub fn get_all_entries<'a>( &self, client: &'a dyn Client, import_status: Option<&ImportStatus>, ) -> Result<PagedCollection<'a, TranslationImportQueueEntryPage>, Error>
Return all entries this import queue has.
If any of target, status or file_extension are given, the returned entries are filtered based on those values.
§Arguments
import_status: The status of the import.
Sourcepub fn get_first_entry_to_import<'a>(
&self,
client: &'a dyn Client,
target: Option<&ObjectWithTranslationImports>,
) -> Result<TranslationImportQueueEntryFull, Error>
pub fn get_first_entry_to_import<'a>( &self, client: &'a dyn Client, target: Option<&ObjectWithTranslationImports>, ) -> Result<TranslationImportQueueEntryFull, Error>
Return the first entry of the queue ready to be imported.
§Arguments
target: IPerson, IProduct, IProductSeries, IDistribution, IDistroSeries or ISourcePackage the import entries are attached to or None to get all entries available.
Sourcepub fn get_request_targets<'a>(
&self,
client: &'a dyn Client,
status: Option<&ImportStatus>,
) -> Result<PagedCollection<'a, ObjectWithTranslationImportsPage>, Error>
pub fn get_request_targets<'a>( &self, client: &'a dyn Client, status: Option<&ImportStatus>, ) -> Result<PagedCollection<'a, ObjectWithTranslationImportsPage>, Error>
List Products and DistroSeries with pending imports.
All returned items will implement IHasTranslationImports.
§Arguments
status: The status of the import.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TranslationImportQueueEntries
impl RefUnwindSafe for TranslationImportQueueEntries
impl Send for TranslationImportQueueEntries
impl Sync for TranslationImportQueueEntries
impl Unpin for TranslationImportQueueEntries
impl UnwindSafe for TranslationImportQueueEntries
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