pub struct Manifest {Show 24 fields
pub name: String,
pub target_type: TargetType,
pub account_id: LazyAccountId,
pub workers_dev: Option<bool>,
pub route: Option<String>,
pub routes: Option<Vec<String>>,
pub zone_id: Option<String>,
pub webpack_config: Option<String>,
pub build: Option<Builder>,
pub private: Option<bool>,
pub dev: Option<Dev>,
pub triggers: Option<Triggers>,
pub migrations: Option<Vec<MigrationConfig>>,
pub usage_model: Option<UsageModel>,
pub compatibility_date: Option<String>,
pub compatibility_flags: Vec<String>,
pub durable_objects: Option<DurableObjects>,
pub env: Option<HashMap<String, Environment>>,
pub kv_namespaces: Option<Vec<ConfigKvNamespace>>,
pub r2_buckets: Option<Vec<ConfigR2Bucket>>,
pub site: Option<Site>,
pub vars: Option<HashMap<String, String>>,
pub text_blobs: Option<HashMap<String, PathBuf>>,
pub wasm_modules: Option<HashMap<String, PathBuf>>,
}
Fields§
§name: String
§target_type: TargetType
§account_id: LazyAccountId
§workers_dev: Option<bool>
§route: Option<String>
§routes: Option<Vec<String>>
§zone_id: Option<String>
§webpack_config: Option<String>
§build: Option<Builder>
§private: Option<bool>
§dev: Option<Dev>
§triggers: Option<Triggers>
§migrations: Option<Vec<MigrationConfig>>
§usage_model: Option<UsageModel>
§compatibility_date: Option<String>
§compatibility_flags: Vec<String>
§durable_objects: Option<DurableObjects>
§env: Option<HashMap<String, Environment>>
§kv_namespaces: Option<Vec<ConfigKvNamespace>>
§r2_buckets: Option<Vec<ConfigR2Bucket>>
§site: Option<Site>
§vars: Option<HashMap<String, String>>
§text_blobs: Option<HashMap<String, PathBuf>>
§wasm_modules: Option<HashMap<String, PathBuf>>
Implementations§
source§impl Manifest
impl Manifest
pub fn new(config_path: &Path) -> Result<Self>
pub fn generate( name: String, target_type: Option<TargetType>, config_path: &Path, site: Option<Site> ) -> Result<Manifest>
pub fn worker_name(&self, env_arg: Option<&str>) -> String
pub fn get_deployments(&self, env: Option<&str>) -> Result<DeploymentSet>
pub fn get_account_id(&self, environment_name: Option<&str>) -> Result<String>
pub fn get_target( &self, environment_name: Option<&str>, preview: bool ) -> Result<Target>
pub fn get_environment( &self, environment_name: Option<&str> ) -> Result<Option<&Environment>>
pub fn warn_about_compatibility_date(&self)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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