pub struct WorkerProjectManifest {
pub code_version: u64,
pub domain: String,
pub static_cache_state: String,
pub pending_code_version: Option<u64>,
pub storage: Option<WorkerProjectStorage>,
}Fields§
§code_version: u64§domain: StringThe project’s registered domain. A project answers on it and nothing else, so an entry without one cannot receive a request; the worker serves nothing for an empty value.
Deserialization tolerates the pre-rename shape (custom_domain, and
null from projects that never registered one) so a manifest written
before this field was required does not poison the whole document.
New control writes only domain, so roll the worker fleet out before
control: an old worker cannot read a manifest that new control wrote.
static_cache_state: String§pending_code_version: Option<u64>§storage: Option<WorkerProjectStorage>Absent only between a project’s creation and its owner connecting a Cloudflare account; a worker cannot serve the project until it is set.
Trait Implementations§
Source§impl Clone for WorkerProjectManifest
impl Clone for WorkerProjectManifest
Source§fn clone(&self) -> WorkerProjectManifest
fn clone(&self) -> WorkerProjectManifest
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<'de> Deserialize<'de> for WorkerProjectManifest
impl<'de> Deserialize<'de> for WorkerProjectManifest
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
Auto Trait Implementations§
impl Freeze for WorkerProjectManifest
impl RefUnwindSafe for WorkerProjectManifest
impl Send for WorkerProjectManifest
impl Sync for WorkerProjectManifest
impl Unpin for WorkerProjectManifest
impl UnsafeUnpin for WorkerProjectManifest
impl UnwindSafe for WorkerProjectManifest
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