pub struct GetFile {Show 14 fields
pub name: String,
pub role: Role,
pub last_modified: String,
pub editor_type: EditorType,
pub thumbnail_url: Option<String>,
pub version: String,
pub document: Box<DocumentNode>,
pub components: HashMap<String, Component>,
pub component_sets: HashMap<String, ComponentSet>,
pub schema_version: f64,
pub styles: HashMap<String, Style>,
pub link_access: Option<String>,
pub main_file_key: Option<String>,
pub branches: Option<Vec<GetFileBranchesItem>>,
}Fields§
§name: StringThe name of the file as it appears in the editor.
role: Role§last_modified: StringThe UTC ISO 8601 time at which the file was last modified.
editor_type: EditorType§thumbnail_url: Option<String>A URL to a thumbnail image of the file.
version: StringThe version number of the file. This number is incremented when a file is modified and can be used to check if the file has changed between requests.
document: Box<DocumentNode>§components: HashMap<String, Component>A mapping from component IDs to component metadata.
component_sets: HashMap<String, ComponentSet>A mapping from component set IDs to component set metadata.
schema_version: f64The version of the file schema that this file uses.
styles: HashMap<String, Style>A mapping from style IDs to style metadata.
link_access: Option<String>The share permission level of the file link.
main_file_key: Option<String>The key of the main file for this file. If present, this file is a component or component set.
branches: Option<Vec<GetFileBranchesItem>>A list of branches for this file.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GetFile
impl<'de> Deserialize<'de> for GetFile
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
impl StructuralPartialEq for GetFile
Auto Trait Implementations§
impl Freeze for GetFile
impl RefUnwindSafe for GetFile
impl Send for GetFile
impl Sync for GetFile
impl Unpin for GetFile
impl UnwindSafe for GetFile
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