pub struct SdfMetadata {
pub name: Option<String>,
pub description: Option<String>,
pub author: Option<String>,
pub bounds: Option<(Vec3, Vec3)>,
pub custom: Option<HashMap<String, String>>,
}Expand description
Optional metadata for SDF trees
Fields§
§name: Option<String>Name of the model
description: Option<String>Description
Author
bounds: Option<(Vec3, Vec3)>Bounding box hint (min, max)
custom: Option<HashMap<String, String>>Custom key-value pairs
Trait Implementations§
Source§impl Clone for SdfMetadata
impl Clone for SdfMetadata
Source§impl Debug for SdfMetadata
impl Debug for SdfMetadata
Source§impl Default for SdfMetadata
impl Default for SdfMetadata
Source§impl<'de> Deserialize<'de> for SdfMetadata
impl<'de> Deserialize<'de> for SdfMetadata
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
Auto Trait Implementations§
impl Freeze for SdfMetadata
impl RefUnwindSafe for SdfMetadata
impl Send for SdfMetadata
impl Sync for SdfMetadata
impl Unpin for SdfMetadata
impl UnsafeUnpin for SdfMetadata
impl UnwindSafe for SdfMetadata
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more