mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 13:20:42 +00:00
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:
parent
2777f153c9
commit
45521d0c73
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue