Struct decthings_api::client::rpc::fs::WriteParams
source · pub struct WriteParams<'a, D: AsRef<[u8]>> {
pub model_id: &'a str,
pub inode: u64,
pub data: D,
pub offset: u64,
pub truncate: Option<bool>,
}Fields§
§model_id: &'a strThe model’s id.
inode: u64Inode number of file.
data: D§offset: u64Where in the file to start writing.
truncate: Option<bool>If true, the file will be truncate to zero length before writing.
Trait Implementations§
source§impl<'a, D: Clone + AsRef<[u8]>> Clone for WriteParams<'a, D>
impl<'a, D: Clone + AsRef<[u8]>> Clone for WriteParams<'a, D>
source§fn clone(&self) -> WriteParams<'a, D>
fn clone(&self) -> WriteParams<'a, 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, D> Freeze for WriteParams<'a, D>where
D: Freeze,
impl<'a, D> RefUnwindSafe for WriteParams<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for WriteParams<'a, D>where
D: Send,
impl<'a, D> Sync for WriteParams<'a, D>where
D: Sync,
impl<'a, D> Unpin for WriteParams<'a, D>where
D: Unpin,
impl<'a, D> UnwindSafe for WriteParams<'a, D>where
D: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)