pub struct GeometryFile {
pub id: Uuid,
pub revision_id: Uuid,
pub filename: String,
pub sha256: String,
pub format: String,
pub length_unit: Option<String>,
pub instances: i32,
}Expand description
A file of a revision that can serve as geometry, with its settings.
Fields§
§id: Uuid§revision_id: Uuid§filename: String§sha256: String§format: String§length_unit: Option<String>Stored unit; None = the format’s default (see GeometryFile::unit).
instances: i32Implementations§
Source§impl GeometryFile
impl GeometryFile
pub fn unit(&self) -> LengthUnit
Trait Implementations§
Source§impl Clone for GeometryFile
impl Clone for GeometryFile
Source§impl Debug for GeometryFile
impl Debug for GeometryFile
Source§impl<'a, R: Row> FromRow<'a, R> for GeometryFile
impl<'a, R: Row> FromRow<'a, R> for GeometryFile
Auto Trait Implementations§
impl Freeze for GeometryFile
impl RefUnwindSafe for GeometryFile
impl Send for GeometryFile
impl Sync for GeometryFile
impl Unpin for GeometryFile
impl UnsafeUnpin for GeometryFile
impl UnwindSafe for GeometryFile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.