pub struct CurrentModelResponse {
Show 14 fields pub model_loaded: bool, pub model_name: String, pub model_id: String, pub vts_model_name: String, pub vts_model_icon_name: String, pub live2d_model_name: String, pub model_load_time: i64, pub time_since_model_loaded: i64, pub number_of_live2d_parameters: i32, pub number_of_live2d_artmeshes: i32, pub has_physics_file: bool, pub number_of_textures: i32, pub texture_resolution: i32, pub model_position: ModelPosition,
}
Expand description

Information about the current model.

This is the return value of CurrentModelRequest.

Fields

model_loaded: bool

Whether the model is loaded.

model_name: String

The name of the model.

model_id: String

The ID of the model.

vts_model_name: String

The VTube Studio JSON file for this model.

E.g., "Model.vtube.json"

vts_model_icon_name: String

The image name of this model’s VTube Studio icon.

live2d_model_name: String

The Live2D model JSON file.

E.g., "Model.model3.json"

model_load_time: i64

How many milliseconds it took to load the model.

time_since_model_loaded: i64

Milliseconds elapsed since the model was loaded.

number_of_live2d_parameters: i32

Number of Live2D parameters.

number_of_live2d_artmeshes: i32

Number of Live2D art meshes.

has_physics_file: bool

Whether the model has a physics file.

number_of_textures: i32

Number of textures.

texture_resolution: i32

The resolution of the texture. E.g., 4096

model_position: ModelPosition

The position of the model.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more