Struct vtubestudio::data::NdiConfigRequest
source · [−]pub struct NdiConfigRequest {
pub set_new_config: bool,
pub ndi_active: Option<bool>,
pub use_ndi5: Option<bool>,
pub use_custom_resolution: Option<bool>,
pub custom_width_ndi: Option<i32>,
pub custom_height_ndi: Option<i32>,
}
Expand description
Get and set NDI settings.
Note that the boolean fields (ndi_optional
, use_ndi5
, etc) are optional in this
library since they’re not strictly required by the API, but the API currently treats
them the same as false
if unspecified.
This request returns NdiConfigResponse
.
Fields
set_new_config: bool
Set to false
to only return existing config (other fields will be ignored).
ndi_active: Option<bool>
Whether NDI should be active.
use_ndi5: Option<bool>
Whether NDI 5 should be used.
use_custom_resolution: Option<bool>
Whether a custom resolution should be used.
Setting this to true
means the NDI stream will no longer have
the same resolution as the VTube Studio window, but instead use
the custom resolution set via the UI or the custom_width
fields of this request.
custom_width_ndi: Option<i32>
Custom NDI width if use_custom_resolution
is specified.
Must be a multiple of 16 and be between 256
and 8192
.
custom_height_ndi: Option<i32>
Custom NDI height if use_custom_resolution
is specified.
Must be a multiple of 8 and be between 256
and 8192
.
Trait Implementations
sourceimpl Clone for NdiConfigRequest
impl Clone for NdiConfigRequest
sourcefn clone(&self) -> NdiConfigRequest
fn clone(&self) -> NdiConfigRequest
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for NdiConfigRequest
impl Debug for NdiConfigRequest
sourceimpl Default for NdiConfigRequest
impl Default for NdiConfigRequest
sourcefn default() -> NdiConfigRequest
fn default() -> NdiConfigRequest
sourceimpl<'de> Deserialize<'de> for NdiConfigRequest
impl<'de> Deserialize<'de> for NdiConfigRequest
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<NdiConfigRequest> for NdiConfigRequest
impl PartialEq<NdiConfigRequest> for NdiConfigRequest
sourcefn eq(&self, other: &NdiConfigRequest) -> bool
fn eq(&self, other: &NdiConfigRequest) -> bool
sourceimpl Request for NdiConfigRequest
impl Request for NdiConfigRequest
type Response = NdiConfigResponse
type Response = NdiConfigResponse
Response
type for this request.