Struct vtubestudio::data::InjectParameterDataRequest
source · [−]pub struct InjectParameterDataRequest {
pub parameter_values: Vec<ParameterValue>,
pub face_found: bool,
pub mode: Option<EnumString<InjectParameterDataMode>>,
}
Expand description
Feeding in data for default or custom parameters.
This request returns InjectParameterDataResponse
.
Fields
parameter_values: Vec<ParameterValue>
The parameter values to inject.
face_found: bool
Whether to consider the user’s face as found.
Allows controlling the model when the “tracking lost” animation is played.
mode: Option<EnumString<InjectParameterDataMode>>
Whether to set or add the parameter data (default is set
).
Generally, if another plugin is already controlling one (default or custom)
parameter, an error will be returned. This happens because only one plugin can
set
(override) a given parameter at a time, which is the default mode for this
request. This is the mode that is used when you don’t provide a value in the mode
field or set the value to set
.
Alternatively, you can set the "mode"
field to "add"
. This will instead add the
values you send to whatever the current parameter values are. The weight
values
aren’t used in that case. Any number of plugins can use the add
mode for a given
parameter at the same time. This can be useful for bonk/throwing type plugins and
other use-cases.
Trait Implementations
sourceimpl Clone for InjectParameterDataRequest
impl Clone for InjectParameterDataRequest
sourcefn clone(&self) -> InjectParameterDataRequest
fn clone(&self) -> InjectParameterDataRequest
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for InjectParameterDataRequest
impl Debug for InjectParameterDataRequest
sourceimpl Default for InjectParameterDataRequest
impl Default for InjectParameterDataRequest
sourcefn default() -> InjectParameterDataRequest
fn default() -> InjectParameterDataRequest
sourceimpl<'de> Deserialize<'de> for InjectParameterDataRequest
impl<'de> Deserialize<'de> for InjectParameterDataRequest
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>,
sourceimpl PartialEq<InjectParameterDataRequest> for InjectParameterDataRequest
impl PartialEq<InjectParameterDataRequest> for InjectParameterDataRequest
sourcefn eq(&self, other: &InjectParameterDataRequest) -> bool
fn eq(&self, other: &InjectParameterDataRequest) -> bool
sourceimpl Request for InjectParameterDataRequest
impl Request for InjectParameterDataRequest
type Response = InjectParameterDataResponse
type Response = InjectParameterDataResponse
Response
type for this request.