pub struct StaticSiteDetailsPost {
pub build_command: Option<String>,
pub headers: Vec<HeaderInput>,
pub ip_allow_list: Vec<CidrBlockAndDescription>,
pub previews: Option<Previews>,
pub publish_path: Option<String>,
pub pull_request_previews_enabled: Option<PullRequestPreviewsEnabled>,
pub render_subdomain_policy: Option<RenderSubdomainPolicy>,
pub routes: Vec<RoutePost>,
}Expand description
StaticSiteDetailsPost
JSON schema
{
"type": "object",
"properties": {
"buildCommand": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/headerInput"
}
},
"ipAllowList": {
"type": "array",
"items": {
"$ref": "#/components/schemas/cidrBlockAndDescription"
}
},
"previews": {
"$ref": "#/components/schemas/previews"
},
"publishPath": {
"description": "Defaults to \"public\"",
"type": "string"
},
"pullRequestPreviewsEnabled": {
"$ref": "#/components/schemas/pullRequestPreviewsEnabled"
},
"renderSubdomainPolicy": {
"$ref": "#/components/schemas/renderSubdomainPolicy"
},
"routes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/routePost"
}
}
}
}Fields§
§build_command: Option<String>§headers: Vec<HeaderInput>§ip_allow_list: Vec<CidrBlockAndDescription>§previews: Option<Previews>§publish_path: Option<String>Defaults to “public”
pull_request_previews_enabled: Option<PullRequestPreviewsEnabled>§render_subdomain_policy: Option<RenderSubdomainPolicy>§routes: Vec<RoutePost>Trait Implementations§
Source§impl Clone for StaticSiteDetailsPost
impl Clone for StaticSiteDetailsPost
Source§fn clone(&self) -> StaticSiteDetailsPost
fn clone(&self) -> StaticSiteDetailsPost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticSiteDetailsPost
impl Debug for StaticSiteDetailsPost
Source§impl Default for StaticSiteDetailsPost
impl Default for StaticSiteDetailsPost
Source§impl<'de> Deserialize<'de> for StaticSiteDetailsPost
impl<'de> Deserialize<'de> for StaticSiteDetailsPost
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
Source§impl From<StaticSiteDetailsPost> for ServicePostServiceDetails
impl From<StaticSiteDetailsPost> for ServicePostServiceDetails
Source§fn from(value: StaticSiteDetailsPost) -> Self
fn from(value: StaticSiteDetailsPost) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StaticSiteDetailsPost
impl RefUnwindSafe for StaticSiteDetailsPost
impl Send for StaticSiteDetailsPost
impl Sync for StaticSiteDetailsPost
impl Unpin for StaticSiteDetailsPost
impl UnsafeUnpin for StaticSiteDetailsPost
impl UnwindSafe for StaticSiteDetailsPost
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