1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Linkbreakers API
*
* This is a documentation of all the APIs of Linkbreakers
*
* The version of the OpenAPI document: 1.46.7
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// LinkView : - LINK_VIEW_UNSPECIFIED: Return all links regardless of directory (default) - LINK_VIEW_DIRECTORY: Return links scoped to a directory. When directory_id is set, returns links in that directory. When directory_id is empty, returns root-level links (no directory).
/// - LINK_VIEW_UNSPECIFIED: Return all links regardless of directory (default) - LINK_VIEW_DIRECTORY: Return links scoped to a directory. When directory_id is set, returns links in that directory. When directory_id is empty, returns root-level links (no directory).
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum LinkView {
#[serde(rename = "LINK_VIEW_UNSPECIFIED")]
LinkViewUnspecified,
#[serde(rename = "LINK_VIEW_DIRECTORY")]
LinkViewDirectory,
}
impl std::fmt::Display for LinkView {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::LinkViewUnspecified => write!(f, "LINK_VIEW_UNSPECIFIED"),
Self::LinkViewDirectory => write!(f, "LINK_VIEW_DIRECTORY"),
}
}
}
impl Default for LinkView {
fn default() -> LinkView {
Self::LinkViewUnspecified
}
}