pub struct TextureReference {
pub values: Option<TextureValues>,
pub other: HashMap<String, Value>,
}Expand description
One theme’s texture assignment for a geometry.
values is optional: the per-theme texture object in
geomprimitives.schema.json carries no required keyword at all (in
contrast to material, which requires exactly one of value/values), so
a bare {"theme": {}} is valid CityJSON.
Fields§
§values: Option<TextureValues>§other: HashMap<String, Value>As with MaterialReference: the per-theme texture object declares no
additionalProperties: false, so extra members are legal and kept.
Trait Implementations§
Source§impl Clone for TextureReference
impl Clone for TextureReference
Source§fn clone(&self) -> TextureReference
fn clone(&self) -> TextureReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureReference
impl Debug for TextureReference
Source§impl<'de> Deserialize<'de> for TextureReference
impl<'de> Deserialize<'de> for TextureReference
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
Source§impl PartialEq for TextureReference
impl PartialEq for TextureReference
Source§impl Serialize for TextureReference
impl Serialize for TextureReference
impl StructuralPartialEq for TextureReference
Auto Trait Implementations§
impl Freeze for TextureReference
impl RefUnwindSafe for TextureReference
impl Send for TextureReference
impl Sync for TextureReference
impl Unpin for TextureReference
impl UnsafeUnpin for TextureReference
impl UnwindSafe for TextureReference
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