Struct decthings_api::rpc::model::UploadStateParams
source · pub struct UploadStateParams<'a, S: AsRef<str>, D: AsRef<[u8]>> {
pub model_id: &'a str,
pub name: &'a str,
pub data: &'a [StateKeyData<'a, D>],
pub delete_states: Option<&'a [S]>,
pub mount_models: Option<&'a [MountModel<'a>]>,
}
Fields§
§model_id: &'a str
The model’s id.
name: &'a str
Name of the new state.
data: &'a [StateKeyData<'a, D>]
Data to upload.
delete_states: Option<&'a [S]>
If provided, these states will be deleted when the new state has been uploaded, in a single atomic operation. If either the upload or the delete fails, both the upload and the delete operations are aborted and an error is returned.
mount_models: Option<&'a [MountModel<'a>]>
Allows your model to access to files and state of these additional models. Can be useful for merging models together.
Trait Implementations§
source§impl<'a, S: Clone + AsRef<str>, D: Clone + AsRef<[u8]>> Clone for UploadStateParams<'a, S, D>
impl<'a, S: Clone + AsRef<str>, D: Clone + AsRef<[u8]>> Clone for UploadStateParams<'a, S, D>
source§fn clone(&self) -> UploadStateParams<'a, S, D>
fn clone(&self) -> UploadStateParams<'a, S, D>
Returns a copy 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<'a, S, D> Freeze for UploadStateParams<'a, S, D>
impl<'a, S, D> RefUnwindSafe for UploadStateParams<'a, S, D>where
D: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S, D> Send for UploadStateParams<'a, S, D>
impl<'a, S, D> Sync for UploadStateParams<'a, S, D>
impl<'a, S, D> Unpin for UploadStateParams<'a, S, D>
impl<'a, S, D> UnwindSafe for UploadStateParams<'a, S, D>where
D: RefUnwindSafe,
S: RefUnwindSafe,
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