pub struct PutOptions {
pub path: String,
pub file: PathBuf,
pub content_type: Option<String>,
pub condition: WriteCondition,
}Expand description
Options for Session::pod_put and Session::pod_acl_put.
Fields§
§path: StringThe pod path: relative to the caller’s own pod root, or absolute
/pods/<pk>/…. For Session::pod_acl_put, the resource or
container whose ACL is written.
file: PathBufThe file whose bytes are written.
content_type: Option<String>The content type; guessed from the file name when None (text/turtle
for an ACL).
condition: WriteConditionThe condition the write is sent under.
Trait Implementations§
Source§impl Clone for PutOptions
impl Clone for PutOptions
Source§impl Debug for PutOptions
impl Debug for PutOptions
Auto Trait Implementations§
impl Forget for PutOptions
impl Freeze for PutOptions
impl Move for PutOptions
impl RefUnwindSafe for PutOptions
impl Send for PutOptionswhere
RawVecInner: Send,
impl Sync for PutOptionswhere
RawVecInner: Sync,
impl Unpin for PutOptions
impl UnsafeUnpin for PutOptions
impl UnwindSafe for PutOptionswhere
RawVecInner: 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