mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 21:30:41 +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
|
/// ```no_run
|
||||||
/// use libips::repository::RestBackend;
|
/// use libips::repository::RestBackend;
|
||||||
|
/// use libips::repository::{ReadableRepository, WritableRepository};
|
||||||
/// use std::path::Path;
|
/// use std::path::Path;
|
||||||
///
|
///
|
||||||
/// // Open a connection to a remote repository
|
/// // Open a connection to a remote repository
|
||||||
|
|
@ -41,7 +42,7 @@ use super::catalog::CatalogManager;
|
||||||
/// repo.add_publisher("openindiana.org").unwrap();
|
/// repo.add_publisher("openindiana.org").unwrap();
|
||||||
///
|
///
|
||||||
/// // Download catalog files for the publisher
|
/// // Download catalog files for the publisher
|
||||||
/// repo.download_catalog("openindiana.org").unwrap();
|
/// repo.download_catalog("openindiana.org", None).unwrap();
|
||||||
/// ```
|
/// ```
|
||||||
pub struct RestBackend {
|
pub struct RestBackend {
|
||||||
/// The base URI of the repository
|
/// The base URI of the repository
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue