pub struct DesignContent {
pub references: Vec<Reference>,
}Expand description
The design stage’s payload: one row per approved reference image.
Fields§
§references: Vec<Reference>The approved reference images, one row each.
At least one (minItems: 1): a record of nothing is not a record,
and a campaign that has approved no design writes no design.json at
all rather than an empty one. The difference matters at staging, where
zero approved images is the state that is refused.
Trait Implementations§
Source§impl Clone for DesignContent
impl Clone for DesignContent
Source§fn clone(&self) -> DesignContent
fn clone(&self) -> DesignContent
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 DesignContent
impl Debug for DesignContent
Source§impl<'de> Deserialize<'de> for DesignContent
impl<'de> Deserialize<'de> for DesignContent
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 JsonSchema for DesignContent
impl JsonSchema for DesignContent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DesignContent
impl PartialEq for DesignContent
Source§impl Serialize for DesignContent
impl Serialize for DesignContent
impl StructuralPartialEq for DesignContent
Auto Trait Implementations§
impl Freeze for DesignContent
impl RefUnwindSafe for DesignContent
impl Send for DesignContent
impl Sync for DesignContent
impl Unpin for DesignContent
impl UnsafeUnpin for DesignContent
impl UnwindSafe for DesignContent
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