Struct vtubestudio::data::ItemUnloadRequest
source · [−]pub struct ItemUnloadRequest {
pub unload_all_in_scene: bool,
pub unload_all_loaded_by_this_plugin: bool,
pub allow_unloading_items_loaded_by_user_or_other_plugins: bool,
pub instance_ids: Vec<String>,
pub file_names: Vec<String>,
}
Expand description
Removing item from the scene.
This may return an error of type CannotCurrentlyUnloadItem
if the user currently has
menus open that prevent VTS from loading/unloading items.
This request returns ItemUnloadResponse
.
Fields
unload_all_in_scene: bool
Whether to unload all items in the scene.
unload_all_loaded_by_this_plugin: bool
Whether to unload all items loaded by this plugin.
allow_unloading_items_loaded_by_user_or_other_plugins: bool
Whether to allow unloading items that have been loaded by the user or other plugins.
instance_ids: Vec<String>
Request specific instance IDs to be unloaded.
file_names: Vec<String>
Request specific file names to be unloaded.
Trait Implementations
sourceimpl Clone for ItemUnloadRequest
impl Clone for ItemUnloadRequest
sourcefn clone(&self) -> ItemUnloadRequest
fn clone(&self) -> ItemUnloadRequest
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 ItemUnloadRequest
impl Debug for ItemUnloadRequest
sourceimpl Default for ItemUnloadRequest
impl Default for ItemUnloadRequest
sourcefn default() -> ItemUnloadRequest
fn default() -> ItemUnloadRequest
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ItemUnloadRequest
impl<'de> Deserialize<'de> for ItemUnloadRequest
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<ItemUnloadRequest> for ItemUnloadRequest
impl PartialEq<ItemUnloadRequest> for ItemUnloadRequest
sourcefn eq(&self, other: &ItemUnloadRequest) -> bool
fn eq(&self, other: &ItemUnloadRequest) -> bool
sourceimpl Request for ItemUnloadRequest
impl Request for ItemUnloadRequest
type Response = ItemUnloadResponse
type Response = ItemUnloadResponse
The expected
Response
type for this request.sourceimpl Serialize for ItemUnloadRequest
impl Serialize for ItemUnloadRequest
impl StructuralPartialEq for ItemUnloadRequest
Auto Trait Implementations
impl RefUnwindSafe for ItemUnloadRequest
impl Send for ItemUnloadRequest
impl Sync for ItemUnloadRequest
impl Unpin for ItemUnloadRequest
impl UnwindSafe for ItemUnloadRequest
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