pub struct GcodeIndexedPayload {
pub file_name: FileName,
pub bytes: u64,
pub layers: u64,
}Expand description
A print’s G-code was read and indexed: what the slicer planned at each file position is now known for it, without reading the file again.
Written once per index built, which is once per print for as long as the server runs.
Fields§
§file_name: FileNameThe file that was indexed.
bytes: u64How many bytes of it were read.
layers: u64How many layers it plans.
Trait Implementations§
Source§impl Clone for GcodeIndexedPayload
impl Clone for GcodeIndexedPayload
Source§impl Debug for GcodeIndexedPayload
impl Debug for GcodeIndexedPayload
Source§impl<'de> Deserialize<'de> for GcodeIndexedPayload
impl<'de> Deserialize<'de> for GcodeIndexedPayload
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 GcodeIndexedPayload
Source§impl EventPayload for GcodeIndexedPayload
impl EventPayload for GcodeIndexedPayload
Source§impl JsonSchema for GcodeIndexedPayload
impl JsonSchema for GcodeIndexedPayload
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 GcodeIndexedPayload
impl PartialEq for GcodeIndexedPayload
Source§impl Sample for GcodeIndexedPayload
impl Sample for GcodeIndexedPayload
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 GcodeIndexedPayload
impl Serialize for GcodeIndexedPayload
impl StructuralPartialEq for GcodeIndexedPayload
Auto Trait Implementations§
impl Forget for GcodeIndexedPayload
impl Freeze for GcodeIndexedPayload
impl Move for GcodeIndexedPayload
impl RefUnwindSafe for GcodeIndexedPayload
impl Send for GcodeIndexedPayload
impl Sync for GcodeIndexedPayload
impl Unpin for GcodeIndexedPayload
impl UnsafeUnpin for GcodeIndexedPayload
impl UnwindSafe for GcodeIndexedPayload
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