Update RestBackend documentation example for download_catalog changes

- Include `ReadableRepository` and `WritableRepository` imports in the example.
- Update the `download_catalog` method to reflect the new optional parameter.
This commit is contained in:
Till Wegmueller 2025-08-03 14:36:36 +02:00
parent 2777f153c9
commit 45521d0c73
No known key found for this signature in database

View file

@ -29,6 +29,7 @@ use super::catalog::CatalogManager;
///
/// ```no_run
/// use libips::repository::RestBackend;
/// use libips::repository::{ReadableRepository, WritableRepository};
/// use std::path::Path;
///
/// // Open a connection to a remote repository
@ -41,7 +42,7 @@ use super::catalog::CatalogManager;
/// repo.add_publisher("openindiana.org").unwrap();
///
/// // Download catalog files for the publisher
/// repo.download_catalog("openindiana.org").unwrap();
/// repo.download_catalog("openindiana.org", None).unwrap();
/// ```
pub struct RestBackend {
/// The base URI of the repository