pub struct Profile {Show 14 fields
pub profile_name: String,
pub profile_version: String,
pub profile_type: Option<String>,
pub profile_uuid: Option<String>,
pub author: Option<String>,
pub created_unix_sec: Option<u64>,
pub description: Option<String>,
pub compatible_printers: Option<Vec<CompatiblePrinter>>,
pub printer: Option<Printer>,
pub settings: Timing,
pub anti_aliasing: Option<AntiAliasing>,
pub materials: Option<Vec<Material>>,
pub scale_compensation_pct: Option<ScaleCompensation>,
pub extra: Option<Value>,
}Expand description
The PROF chunk: a named, versioned, reusable print profile.
Fields§
§profile_name: StringProfile name. Required and non-empty.
profile_version: StringProfile version. Required and non-empty.
profile_type: Option<String>One of material, printer, combined. Required.
profile_uuid: Option<String>Unique identifier for deduplication.
Attribution.
created_unix_sec: Option<u64>Creation timestamp.
description: Option<String>Free-form description.
compatible_printers: Option<Vec<CompatiblePrinter>>Printer compatibility hints.
printer: Option<Printer>Printer definition, for a printer or combined profile.
settings: TimingThe profile’s settings, in META’s field names. Required.
anti_aliasing: Option<AntiAliasing>Anti-aliasing preferences.
materials: Option<Vec<Material>>Material library, same schema and indexing as META.materials.
scale_compensation_pct: Option<ScaleCompensation>Per-axis scale compensation.
extra: Option<Value>Vendor metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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