pub struct ObjectWithTranslationImports(/* private fields */);Expand description
An entity that has a translation import queue.
Examples include ProductSeries, SourcePackage, DistroSeries, and Person.
Implementations§
Source§impl ObjectWithTranslationImports
impl ObjectWithTranslationImports
pub fn get<'a>( &self, client: &'a dyn Client, ) -> Result<ObjectWithTranslationImportsFull, Error>
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
pub fn put<'a>( &self, client: &'a dyn Client, representation: &ObjectWithTranslationImportsFull, ) -> Result<(), Error>
pub fn patch<'a>( &self, client: &'a dyn Client, representation: &ObjectWithTranslationImportsDiff, ) -> Result<(), Error>
Sourcepub fn get_translation_import_queue_entries<'a>(
&self,
client: &'a dyn Client,
import_status: Option<&ImportStatus>,
file_extension: Option<&str>,
) -> Result<PagedCollection<'a, TranslationImportQueueEntryPage>, Error>
pub fn get_translation_import_queue_entries<'a>( &self, client: &'a dyn Client, import_status: Option<&ImportStatus>, file_extension: Option<&str>, ) -> Result<PagedCollection<'a, TranslationImportQueueEntryPage>, Error>
Return entries in the translation import queue for this entity.
If one of both of ‘import_status’ or ‘file_extension’ are given, the returned entries are filtered based on those values.
§Arguments
-
import_status: StatusShow only entries with this status
-
file_extension: Filename extensionShow only entries with this filename suffix
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObjectWithTranslationImports
impl RefUnwindSafe for ObjectWithTranslationImports
impl Send for ObjectWithTranslationImports
impl Sync for ObjectWithTranslationImports
impl Unpin for ObjectWithTranslationImports
impl UnwindSafe for ObjectWithTranslationImports
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