Struct mongodb::gridfs::file::GfsFile [] [src]

pub struct GfsFile {
    pub id: ObjectId,
    pub chunk_size: i32,
    pub aliases: Vec<String>,
    pub name: Option<String>,
    pub upload_date: Option<DateTime<UTC>>,
    pub content_type: Option<String>,
    pub metadata: Option<Vec<u8>>,
    // some fields omitted
}

A one-to-one representation of a file document within GridFS.

Fields

Methods

impl GfsFile
[src]

Create a new GfsFile by ObjectId.

Create a new GfsFile by filename and ObjectId.

Read a GridFS file document into a new GfsFile.

Converts a GfsFile into a bson document.