Struct vtubestudio::data::CurrentModelResponse
source · [−]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
sourceimpl Clone for CurrentModelResponse
impl Clone for CurrentModelResponse
sourcefn clone(&self) -> CurrentModelResponse
fn clone(&self) -> CurrentModelResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CurrentModelResponse
impl Debug for CurrentModelResponse
sourceimpl Default for CurrentModelResponse
impl Default for CurrentModelResponse
sourcefn default() -> CurrentModelResponse
fn default() -> CurrentModelResponse
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CurrentModelResponse
impl<'de> Deserialize<'de> for CurrentModelResponse
sourcefn 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
sourceimpl PartialEq<CurrentModelResponse> for CurrentModelResponse
impl PartialEq<CurrentModelResponse> for CurrentModelResponse
sourcefn eq(&self, other: &CurrentModelResponse) -> bool
fn eq(&self, other: &CurrentModelResponse) -> bool
sourceimpl Response for CurrentModelResponse
impl Response for CurrentModelResponse
sourceimpl Serialize for CurrentModelResponse
impl Serialize for CurrentModelResponse
impl StructuralPartialEq for CurrentModelResponse
Auto Trait Implementations
impl RefUnwindSafe for CurrentModelResponse
impl Send for CurrentModelResponse
impl Sync for CurrentModelResponse
impl Unpin for CurrentModelResponse
impl UnwindSafe for CurrentModelResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more