Struct Obj
pub struct Obj {
pub id: String,
pub obj_type: ObjectType,
pub extra: Map<String, Value>,
}Expand description
A generic 3D object as returned by the server.
Unknown fields are preserved in extra, mirroring the Pydantic
model_config = ConfigDict(extra="allow").
Fields§
§id: StringThe object id (defaults to "-1").
obj_type: ObjectTypeThe object type.
extra: Map<String, Value>Arbitrary additional fields (e.g. width, material, segments).
Trait Implementations§
§impl<'de> Deserialize<'de> for Obj
impl<'de> Deserialize<'de> for Obj
§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 Obj
impl RefUnwindSafe for Obj
impl Send for Obj
impl Sync for Obj
impl Unpin for Obj
impl UnwindSafe for Obj
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