pub struct TemplateIr {Show 13 fields
pub id: String,
pub model: ModelKind,
pub page_size: Option<Size>,
pub orientation: Orientation,
pub page_template: Option<PageTemplate>,
pub collision: Option<CollisionPolicy>,
pub page_collision: Option<CollisionPolicy>,
pub guides: BTreeMap<String, Length>,
pub regions: BTreeMap<String, RegionIr>,
pub exclusions: BTreeMap<String, ExclusionIr>,
pub data_schema: DataSchema,
pub ai_policy: AiPolicy,
pub elements: Vec<ElementIr>,
}Expand description
Expanded reusable template IR.
Fields§
§id: StringTemplate identity.
model: ModelKindModel.
page_size: Option<Size>Optional page size.
orientation: OrientationSource orientation.
page_template: Option<PageTemplate>Resolved trim, margin, bleed, safe-area, and crop metadata.
collision: Option<CollisionPolicy>Document-wide collision policy.
page_collision: Option<CollisionPolicy>Page collision policy inherited after the document policy.
guides: BTreeMap<String, Length>Named guides.
regions: BTreeMap<String, RegionIr>Named regions.
exclusions: BTreeMap<String, ExclusionIr>Named page-relative exclusions.
data_schema: DataSchemaOptional typed data contract.
ai_policy: AiPolicyOptional external-tool edit policy, retained but never executed by core.
elements: Vec<ElementIr>Expanded root nodes.
Implementations§
Trait Implementations§
Source§impl Clone for TemplateIr
impl Clone for TemplateIr
Source§fn clone(&self) -> TemplateIr
fn clone(&self) -> TemplateIr
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 TemplateIr
impl Debug for TemplateIr
Source§impl<'de> Deserialize<'de> for TemplateIr
impl<'de> Deserialize<'de> for TemplateIr
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 TemplateIr
impl PartialEq for TemplateIr
Source§impl Serialize for TemplateIr
impl Serialize for TemplateIr
impl StructuralPartialEq for TemplateIr
Auto Trait Implementations§
impl Freeze for TemplateIr
impl RefUnwindSafe for TemplateIr
impl Send for TemplateIr
impl Sync for TemplateIr
impl Unpin for TemplateIr
impl UnsafeUnpin for TemplateIr
impl UnwindSafe for TemplateIr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.