pub struct FilePosition {
pub bytes: i64,
pub size_bytes: Option<i64>,
pub observed_at: Timestamp,
}Expand description
How far into its file a print had got, and when that was read.
Fields§
§bytes: i64The byte the printer had read the file up to.
size_bytes: Option<i64>The file’s size in bytes, when it was known.
observed_at: TimestampWhen the position was read.
Trait Implementations§
Source§impl Clone for FilePosition
impl Clone for FilePosition
Source§impl Debug for FilePosition
impl Debug for FilePosition
Source§impl<'de> Deserialize<'de> for FilePosition
impl<'de> Deserialize<'de> for FilePosition
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 FilePosition
Source§impl JsonSchema for FilePosition
impl JsonSchema for FilePosition
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 FilePosition
impl PartialEq for FilePosition
Source§impl Sample for FilePosition
impl Sample for FilePosition
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 FilePosition
impl Serialize for FilePosition
impl StructuralPartialEq for FilePosition
Auto Trait Implementations§
impl Forget for FilePosition
impl Freeze for FilePosition
impl Move for FilePosition
impl RefUnwindSafe for FilePosition
impl Send for FilePosition
impl Sync for FilePosition
impl Unpin for FilePosition
impl UnsafeUnpin for FilePosition
impl UnwindSafe for FilePosition
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