pub struct PrintSegmentKey {
pub print_id: PrintId,
pub tool: i64,
pub segment: u32,
}Expand description
One segment of a print this system watched, on one tool: the key of a
ChargeKey::Print debit, and the only key filament held pending can be
under.
Fields§
§print_id: PrintIdThe print.
tool: i64The tool, in the printer’s own numbering.
segment: u32Which segment, numbered as ChargeKey::Print numbers it.
Implementations§
Source§impl PrintSegmentKey
impl PrintSegmentKey
Sourcepub const fn charge_key(&self) -> ChargeKey
pub const fn charge_key(&self) -> ChargeKey
The charge key this segment is debited under.
Trait Implementations§
Source§impl Clone for PrintSegmentKey
impl Clone for PrintSegmentKey
impl Copy for PrintSegmentKey
Source§impl Debug for PrintSegmentKey
impl Debug for PrintSegmentKey
Source§impl<'de> Deserialize<'de> for PrintSegmentKey
impl<'de> Deserialize<'de> for PrintSegmentKey
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 Eq for PrintSegmentKey
Source§impl Hash for PrintSegmentKey
impl Hash for PrintSegmentKey
Source§impl JsonSchema for PrintSegmentKey
impl JsonSchema for PrintSegmentKey
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 PrintSegmentKey
impl PartialEq for PrintSegmentKey
Source§impl Sample for PrintSegmentKey
impl Sample for PrintSegmentKey
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
Source§impl Serialize for PrintSegmentKey
impl Serialize for PrintSegmentKey
impl StructuralPartialEq for PrintSegmentKey
Auto Trait Implementations§
impl Forget for PrintSegmentKey
impl Freeze for PrintSegmentKey
impl Move for PrintSegmentKey
impl RefUnwindSafe for PrintSegmentKey
impl Send for PrintSegmentKey
impl Sync for PrintSegmentKey
impl Unpin for PrintSegmentKey
impl UnsafeUnpin for PrintSegmentKey
impl UnwindSafe for PrintSegmentKey
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