Struct kittycad_modeling_cmds::ImportFile
source · pub struct ImportFile {
pub path: String,
pub data: Vec<u8>,
}
Expand description
File to import into the current model. If you are sending binary data for a file, be sure to send the WebSocketRequest as binary/bson, not text/json.
Fields§
§path: String
The file’s full path, including file extension.
data: Vec<u8>
The raw bytes of the file
Trait Implementations§
source§impl Clone for ImportFile
impl Clone for ImportFile
source§fn clone(&self) -> ImportFile
fn clone(&self) -> ImportFile
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 moresource§impl Debug for ImportFile
impl Debug for ImportFile
source§impl<'de> Deserialize<'de> for ImportFile
impl<'de> Deserialize<'de> for ImportFile
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 ImportFile
impl JsonSchema for ImportFile
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for ImportFile
impl PartialEq for ImportFile
source§fn eq(&self, other: &ImportFile) -> bool
fn eq(&self, other: &ImportFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ImportFile
impl Serialize for ImportFile
impl Eq for ImportFile
impl StructuralPartialEq for ImportFile
Auto Trait Implementations§
impl Freeze for ImportFile
impl RefUnwindSafe for ImportFile
impl Send for ImportFile
impl Sync for ImportFile
impl Unpin for ImportFile
impl UnwindSafe for ImportFile
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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