Class: OpenDAL::Metadata

Inherits:
Object
  • Object
show all
Defined in:
src/metadata.rs

Overview

Metadata about the file.

Instance Method Summary collapse

Instance Method Details

#content_dispositionString?

Content-Disposition of this object

Returns:

  • (String, nil)


49
50
51
# File 'src/metadata.rs', line 49

pub fn content_disposition(&self) -> Option<&str> {
    self.0.content_disposition()
}

#content_lengthInteger

Content length of this entry.

Returns:

  • (Integer)


57
58
59
# File 'src/metadata.rs', line 57

pub fn content_length(&self) -> u64 {
    self.0.content_length()
}

#content_md5String?

Content MD5 of this entry.

Returns:

  • (String, nil)


65
66
67
# File 'src/metadata.rs', line 65

pub fn content_md5(&self) -> Option<&str> {
    self.0.content_md5()
}

#content_typeString?

Content Type of this entry.

Returns:

  • (String, nil)


73
74
75
# File 'src/metadata.rs', line 73

pub fn content_type(&self) -> Option<&str> {
    self.0.content_type()
}

#dir?Boolean

Returns True if this is a directory.

Returns:

  • (Boolean)


97
98
99
100
# File 'src/metadata.rs', line 97

pub fn is_dir(&self) -> bool {
        self.0.is_dir()
    }
}

#etagString?

ETag of this entry.

Returns:

  • (String, nil)


81
82
83
# File 'src/metadata.rs', line 81

pub fn etag(&self) -> Option<&str> {
    self.0.etag()
}

#file?Boolean

Returns True if this is a file.

Returns:

  • (Boolean)


89
90
91
# File 'src/metadata.rs', line 89

pub fn is_file(&self) -> bool {
    self.0.is_file()
}