pub struct FileScopeObject {
pub id: String,
pub etag: Option<Option<String>>,
pub type: RHashType,
pub sequence_id: Option<Box<String>>,
pub name: Option<String>,
pub sha1: Option<String>,
pub file_version: Option<Box<FileMiniAllOfFileVersion>>,
}Fields§
§id: StringThe unique identifier that represent a file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL https://_*.app.box.com/files/123 the file_id is 123.
etag: Option<Option<String>>The HTTP etag of this file. This can be used within some API endpoints in the If-Match and If-None-Match headers to only perform changes on the file if (no) changes have happened.
type: RHashTypefile
sequence_id: Option<Box<String>>§name: Option<String>The name of the file
sha1: Option<String>The SHA1 hash of the file. This can be used to compare the contents of a file on Box with a local file.
file_version: Option<Box<FileMiniAllOfFileVersion>>Implementations§
Source§impl FileScopeObject
impl FileScopeObject
pub fn new(id: String, type: RHashType) -> FileScopeObject
Trait Implementations§
Source§impl Clone for FileScopeObject
impl Clone for FileScopeObject
Source§fn clone(&self) -> FileScopeObject
fn clone(&self) -> FileScopeObject
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 FileScopeObject
impl Debug for FileScopeObject
Source§impl Default for FileScopeObject
impl Default for FileScopeObject
Source§fn default() -> FileScopeObject
fn default() -> FileScopeObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileScopeObject
impl<'de> Deserialize<'de> for FileScopeObject
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 FileScopeObject
impl PartialEq for FileScopeObject
Source§impl Serialize for FileScopeObject
impl Serialize for FileScopeObject
impl StructuralPartialEq for FileScopeObject
Auto Trait Implementations§
impl Freeze for FileScopeObject
impl RefUnwindSafe for FileScopeObject
impl Send for FileScopeObject
impl Sync for FileScopeObject
impl Unpin for FileScopeObject
impl UnwindSafe for FileScopeObject
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