pub struct FsQuery {
pub path: String,
pub mode: Option<String>,
}Expand description
Query string for every route in this module.
path is required. A request missing it is 400, never 404: clients map 404
onto FileNotFoundError, so answering 404 for a protocol typo made a missing
query key look like an absent artifact — that is how one defect hid for a full
review round.
Fields§
§path: String§mode: Option<String>Octal mode for a written file, carried as a string so 0644 and 644
both parse and neither is read as decimal 644.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FsQuery
impl<'de> Deserialize<'de> for FsQuery
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
Source§impl JsonSchema for FsQuery
impl JsonSchema for FsQuery
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FsQuery
impl RefUnwindSafe for FsQuery
impl Send for FsQuery
impl Sync for FsQuery
impl Unpin for FsQuery
impl UnsafeUnpin for FsQuery
impl UnwindSafe for FsQuery
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