Skip to main content

romm_cli/endpoints/
collections.rs

1use crate::types::Collection;
2
3use super::Endpoint;
4
5/// List collections (smart/virtual). ROMM API: GET /api/collections.
6#[derive(Debug, Default, Clone)]
7pub struct ListCollections;
8
9impl Endpoint for ListCollections {
10    type Output = Vec<Collection>;
11
12    fn method(&self) -> &'static str {
13        "GET"
14    }
15
16    fn path(&self) -> String {
17        "/api/collections".into()
18    }
19}