pub struct PagesProjectCreate {
pub build_config: Option<Box<PagesBuildConfig>>,
pub deployment_configs: Option<Box<PagesDeploymentConfigs>>,
pub name: Option<String>,
pub production_branch: Option<String>,
}Fields§
§build_config: Option<Box<PagesBuildConfig>>BuildConfig says how to build the site. Omitted means no build step.
deployment_configs: Option<Box<PagesDeploymentConfigs>>DeploymentConfigs carries the preview and production runtime configs — the bindings and variables the built site’s functions run with.
name: Option<String>Name is the project name, and it is also the address: the site answers at
production_branch: Option<String>ProductionBranch is which git branch builds to production; every other branch builds a preview. Omitted leaves Cloudflare’s own default.
Implementations§
Source§impl PagesProjectCreate
impl PagesProjectCreate
pub fn new() -> PagesProjectCreate
Trait Implementations§
Source§impl Clone for PagesProjectCreate
impl Clone for PagesProjectCreate
Source§fn clone(&self) -> PagesProjectCreate
fn clone(&self) -> PagesProjectCreate
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 PagesProjectCreate
impl Debug for PagesProjectCreate
Source§impl Default for PagesProjectCreate
impl Default for PagesProjectCreate
Source§fn default() -> PagesProjectCreate
fn default() -> PagesProjectCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PagesProjectCreate
impl<'de> Deserialize<'de> for PagesProjectCreate
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 PartialEq for PagesProjectCreate
impl PartialEq for PagesProjectCreate
Source§impl Serialize for PagesProjectCreate
impl Serialize for PagesProjectCreate
impl StructuralPartialEq for PagesProjectCreate
Auto Trait Implementations§
impl Freeze for PagesProjectCreate
impl RefUnwindSafe for PagesProjectCreate
impl Send for PagesProjectCreate
impl Sync for PagesProjectCreate
impl Unpin for PagesProjectCreate
impl UnsafeUnpin for PagesProjectCreate
impl UnwindSafe for PagesProjectCreate
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