pub struct FilePath {
pub file_id: String,
pub index: i64,
pub type_: FilePathType,
}Expand description
A path to a file.
JSON schema
{
"title": "File path",
"description": "A path to a file.\n",
"type": "object",
"required": [
"file_id",
"index",
"type"
],
"properties": {
"file_id": {
"description": "The ID of the file.\n",
"type": "string"
},
"index": {
"description": "The index of the file in the list of files.\n",
"type": "integer"
},
"type": {
"description": "The type of the file path. Always `file_path`.\n",
"type": "string",
"enum": [
"file_path"
],
"x-stainless-const": true
}
}
}Fields§
§file_id: StringThe ID of the file.
index: i64The index of the file in the list of files.
type_: FilePathTypeThe type of the file path. Always file_path.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FilePath
impl<'de> Deserialize<'de> for FilePath
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 From<FilePath> for Annotation
impl From<FilePath> for Annotation
Auto Trait Implementations§
impl Freeze for FilePath
impl RefUnwindSafe for FilePath
impl Send for FilePath
impl Sync for FilePath
impl Unpin for FilePath
impl UnsafeUnpin for FilePath
impl UnwindSafe for FilePath
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