pub struct Document {
pub name: String,
pub display_name: Option<String>,
pub custom_metadata: Option<Vec<CustomMetadata>>,
pub update_time: OffsetDateTime,
pub create_time: OffsetDateTime,
pub state: DocumentState,
pub size_bytes: i64,
pub mime_type: Mime,
}Expand description
A document represents a file within a file search store.
Documents are automatically chunked, embedded, and indexed when uploaded.
Fields§
§name: StringResource name (e.g., “fileSearchStores/*/documents/doc-123”)
display_name: Option<String>Human-readable display name (max 512 chars)
custom_metadata: Option<Vec<CustomMetadata>>Custom metadata (max 20 items)
update_time: OffsetDateTimeLast update timestamp
create_time: OffsetDateTimeCreation timestamp
state: DocumentStateCurrent state
size_bytes: i64Size in bytes
mime_type: MimeMIME type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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 Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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