pub struct HandleArg {
pub world: WorldId,
pub context: Option<u64>,
pub id: u64,
pub format: Option<String>,
}Available on crate feature
mcp and non-WebAssembly only.Expand description
Which world and resource a handle tool runs against.
Fields§
§world: WorldIdThe world to drive: "Host" for the world the transport thread itself
holds, or {"Handle": bits} for a world a host entity carries.
context: Option<u64>Any entity carrying the world’s render context, as its u64 bits.
Omit when the world holds exactly one.
id: u64The resource’s id, as list_resources reports it. A texture view is
read through the texture it views.
format: Option<String>The image format to answer with: "webp" (lossless, the default),
"png", or "jpeg".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HandleArg
impl<'de> Deserialize<'de> for HandleArg
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 JsonSchema for HandleArg
impl JsonSchema for HandleArg
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for HandleArg
impl Freeze for HandleArg
impl RefUnwindSafe for HandleArg
impl Send for HandleArg
impl Sync for HandleArg
impl Unpin for HandleArg
impl UnsafeUnpin for HandleArg
impl UnwindSafe for HandleArg
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