pub struct UploadPathBody {
pub document: Map<String, Value>,
pub is_public: Option<bool>,
pub slug: String,
}Expand description
UploadPathBody
JSON schema
{
"type": "object",
"required": [
"document",
"slug"
],
"properties": {
"document": {
"type": "object"
},
"is_public": {
"description": "Defaults to true. Set false for secret/unlisted paths (e.g. pathstash).",
"type": "boolean"
},
"slug": {
"type": "string"
}
}
}Fields§
§document: Map<String, Value>§is_public: Option<bool>Defaults to true. Set false for secret/unlisted paths (e.g. pathstash).
slug: StringTrait Implementations§
Source§impl Clone for UploadPathBody
impl Clone for UploadPathBody
Source§fn clone(&self) -> UploadPathBody
fn clone(&self) -> UploadPathBody
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 moreSource§impl Debug for UploadPathBody
impl Debug for UploadPathBody
Source§impl<'de> Deserialize<'de> for UploadPathBody
impl<'de> Deserialize<'de> for UploadPathBody
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 UploadPathBody
impl RefUnwindSafe for UploadPathBody
impl Send for UploadPathBody
impl Sync for UploadPathBody
impl Unpin for UploadPathBody
impl UnsafeUnpin for UploadPathBody
impl UnwindSafe for UploadPathBody
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