ephemeris_forge_github/api/request/pages.rs
1use facet::Facet;
2
3use crate::{BuildType, Source};
4
5/// The body that creates a Pages site.
6#[derive(Clone, Debug, Eq, Facet, PartialEq)]
7pub struct PagesCreate {
8 /// How the site is built.
9 pub build_type: BuildType,
10 /// The published branch and folder.
11 pub source: Source,
12}
13
14/// The body that updates a Pages site.
15#[derive(Clone, Debug, Eq, Facet, PartialEq)]
16pub struct PagesUpdate {
17 /// The custom domain. Null removes it.
18 pub cname: Option<String>,
19 /// Whether HTTPS is required.
20 pub https_enforced: bool,
21 /// How the site is built.
22 pub build_type: BuildType,
23 /// The published branch and folder.
24 pub source: Source,
25}