pub struct ContainerFileResource {
pub id: String,
pub object: String,
pub container_id: String,
pub created_at: u64,
pub bytes: u64,
pub path: String,
pub source: String,
}
Fields§
§id: String
Unique identifier for the file.
object: String
The type of this object (container.file
).
container_id: String
The container this file belongs to.
created_at: u64
Unix timestamp (in seconds) when the file was created.
bytes: u64
Size of the file in bytes.
path: String
Path of the file in the container.
source: String
Source of the file (e.g., user
, assistant
).
Implementations§
Source§impl ContainerFileResource
impl ContainerFileResource
Sourcepub fn builder() -> ContainerFileResourceBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ContainerFileResourceBuilder<((), (), (), (), (), (), ())>
Create a builder for building ContainerFileResource
.
On the builder, call .id(...)
, .object(...)
, .container_id(...)
, .created_at(...)
, .bytes(...)
, .path(...)
, .source(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ContainerFileResource
.
Trait Implementations§
Source§impl Clone for ContainerFileResource
impl Clone for ContainerFileResource
Source§fn clone(&self) -> ContainerFileResource
fn clone(&self) -> ContainerFileResource
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 ContainerFileResource
impl Debug for ContainerFileResource
Source§impl<'de> Deserialize<'de> for ContainerFileResource
impl<'de> Deserialize<'de> for ContainerFileResource
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 PartialEq for ContainerFileResource
impl PartialEq for ContainerFileResource
Source§impl Serialize for ContainerFileResource
impl Serialize for ContainerFileResource
impl StructuralPartialEq for ContainerFileResource
Auto Trait Implementations§
impl Freeze for ContainerFileResource
impl RefUnwindSafe for ContainerFileResource
impl Send for ContainerFileResource
impl Sync for ContainerFileResource
impl Unpin for ContainerFileResource
impl UnwindSafe for ContainerFileResource
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