pub struct Page {
pub url: String,
pub status: Option<Status>,
pub cname: Option<String>,
pub protected_domain_state: Option<Option<ProtectedDomainState>>,
pub pending_domain_unverified_at: Option<Option<String>>,
pub custom_404: bool,
pub html_url: Option<String>,
pub build_type: Option<Option<BuildType>>,
pub source: Option<Box<PagesSourceHash>>,
pub public: bool,
pub https_certificate: Option<Box<PagesHttpsCertificate>>,
pub https_enforced: Option<bool>,
}
Expand description
Page : The configuration for GitHub Pages for a repository.
Fields§
§url: String
The API address for accessing this Page resource.
status: Option<Status>
The status of the most recent build of the Page.
cname: Option<String>
The Pages site’s custom domain
protected_domain_state: Option<Option<ProtectedDomainState>>
The state if the domain is verified
pending_domain_unverified_at: Option<Option<String>>
The timestamp when a pending domain becomes unverified.
custom_404: bool
Whether the Page has a custom 404 page.
html_url: Option<String>
The web address the Page can be accessed from.
build_type: Option<Option<BuildType>>
The process in which the Page will be built.
source: Option<Box<PagesSourceHash>>
§public: bool
Whether the GitHub Pages site is publicly visible. If set to true
, the site is accessible to anyone on the internet. If set to false
, the site will only be accessible to users who have at least read
access to the repository that published the site.
https_certificate: Option<Box<PagesHttpsCertificate>>
§https_enforced: Option<bool>
Whether https is enabled on the domain
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Page
impl<'de> Deserialize<'de> for Page
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more