pub struct TextureObject {
pub thetype: Option<TextureFormat>,
pub image: Option<String>,
pub wrap_mode: Option<WrapMode>,
pub texture_type: Option<TextureType>,
pub border_color: Option<BorderColor>,
}Expand description
One entry of the document-level appearance.textures palette, referred to
by the first entry of each ring in a TextureValues.
appearance.schema.json#/Texture, in full:
"Texture": {
"type": "object",
"properties": {
"type": {"enum": ["PNG", "JPG"]},
"image": {"type": "string"},
"wrapMode": {"enum": ["none", "wrap", "mirror", "clamp", "border"]},
"textureType": {"enum": ["unknown", "specific", "typical"]},
"borderColor": {"type": "array", "items": {"type": "number"}, "minItems": 3, "maxItems": 4}
},
"additionalProperties": false
}There is no required keyword, so every member is optional and a bare
{} is valid CityJSON — including image, which FlatCityBuf’s .fbs
currently makes mandatory.
Fields§
§thetype: Option<TextureFormat>The image file format. Named thetype because type is a Rust
keyword, as in crate::CityJSONFeature.
image: Option<String>§wrap_mode: Option<WrapMode>§texture_type: Option<TextureType>§border_color: Option<BorderColor>Trait Implementations§
Source§impl Clone for TextureObject
impl Clone for TextureObject
Source§fn clone(&self) -> TextureObject
fn clone(&self) -> TextureObject
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 TextureObject
impl Debug for TextureObject
Source§impl<'de> Deserialize<'de> for TextureObject
impl<'de> Deserialize<'de> for TextureObject
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 TextureObject
impl PartialEq for TextureObject
Source§impl Serialize for TextureObject
impl Serialize for TextureObject
impl StructuralPartialEq for TextureObject
Auto Trait Implementations§
impl Freeze for TextureObject
impl RefUnwindSafe for TextureObject
impl Send for TextureObject
impl Sync for TextureObject
impl Unpin for TextureObject
impl UnsafeUnpin for TextureObject
impl UnwindSafe for TextureObject
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