pub struct ModuleUpdateRequest {
pub parent_id: AssetId,
pub body: Option<ModuleBody>,
pub index: Option<u16>,
pub is_complete: Option<bool>,
}
Expand description
Request to update a Module
.
note: fields here cannot be nulled out (None
means “don’t change”).
Fields§
§parent_id: AssetId
ID for Playlist or JIG
body: Option<ModuleBody>
The module’s body.
index: Option<u16>
Where to move this module to in the parent. Relevant for the order that the modules are returned when fetching JIG data.
Numbers larger than the parent JIG’s module count will move it to the end.
is_complete: Option<bool>
check if module is complete
Trait Implementations§
Source§impl Debug for ModuleUpdateRequest
impl Debug for ModuleUpdateRequest
Source§impl<'de> Deserialize<'de> for ModuleUpdateRequest
impl<'de> Deserialize<'de> for ModuleUpdateRequest
Source§fn 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
Auto Trait Implementations§
impl Freeze for ModuleUpdateRequest
impl RefUnwindSafe for ModuleUpdateRequest
impl Send for ModuleUpdateRequest
impl Sync for ModuleUpdateRequest
impl Unpin for ModuleUpdateRequest
impl UnwindSafe for ModuleUpdateRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more