pub struct CreateSaveRequest {
pub name: String,
pub summary: String,
pub extra: Option<String>,
pub playtime: u32,
pub data_file_path: Box<Path>,
pub cover_file_path: Option<Box<Path>>,
}Expand description
Request parameters for creating a cloud save
Fields§
§name: StringSave name (max 60 bytes, no Chinese characters)
summary: StringSave description (max 500 bytes)
extra: Option<String>Developer-defined extra data (max 1000 bytes, optional)
playtime: u32Game playtime in seconds
data_file_path: Box<Path>Path to the save data file (max 10MB)
cover_file_path: Option<Box<Path>>Path to the cover image file (max 512KB, optional)
Trait Implementations§
Source§impl Clone for CreateSaveRequest
impl Clone for CreateSaveRequest
Source§fn clone(&self) -> CreateSaveRequest
fn clone(&self) -> CreateSaveRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateSaveRequest
impl RefUnwindSafe for CreateSaveRequest
impl Send for CreateSaveRequest
impl Sync for CreateSaveRequest
impl Unpin for CreateSaveRequest
impl UnwindSafe for CreateSaveRequest
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