You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
408 B
Rust
20 lines
408 B
Rust
3 years ago
|
use crate::api_core::common::PageInformation;
|
||
|
use crate::api_core::Endpoint;
|
||
|
|
||
|
#[derive(Clone, Debug, Deserialize)]
|
||
|
pub struct GetPagesResponse {
|
||
|
/// The top level notebook page
|
||
|
pub pages: PageInformation,
|
||
|
}
|
||
|
|
||
|
pub struct GetPage;
|
||
|
|
||
|
impl Endpoint for GetPage {
|
||
|
type Request = ();
|
||
|
type Response = GetPagesResponse;
|
||
|
|
||
|
fn path() -> String {
|
||
|
String::from("manage_pages/get_pages")
|
||
|
}
|
||
|
}
|