pub struct WorkbookContext {
pub id: WorkbookId,
pub short_id: String,
pub revision_id: String,
pub slug: String,
pub path: PathBuf,
pub caps: BackendCaps,
pub bytes: u64,
pub last_modified: Option<DateTime<Utc>>,
/* private fields */
}Fields§
§id: WorkbookId§short_id: String§revision_id: String§slug: String§path: PathBuf§caps: BackendCaps§bytes: u64§last_modified: Option<DateTime<Utc>>Implementations§
Source§impl WorkbookContext
impl WorkbookContext
pub fn load(_config: &Arc<ServerConfig>, path: &Path) -> Result<Self>
pub fn load_from_path( _config: &Arc<ServerConfig>, path: &Path, stable_id: WorkbookId, short_id: String, revision_id: Option<String>, ) -> Result<Self>
pub fn load_from_bytes( _config: &Arc<ServerConfig>, display_name: &str, bytes: &[u8], stable_id: WorkbookId, short_id: String, revision_id: Option<String>, ) -> Result<Self>
pub fn sheet_names(&self) -> Vec<String>
pub fn describe(&self) -> WorkbookDescription
pub fn get_sheet_metrics_fast( &self, sheet_name: &str, ) -> Result<Arc<SheetCacheEntry>>
pub fn get_sheet_metrics( &self, sheet_name: &str, ) -> Result<Arc<SheetCacheEntry>>
pub fn list_summaries(&self, include_bounds: bool) -> Result<Vec<SheetSummary>>
pub fn with_sheet<T, F>(&self, sheet_name: &str, func: F) -> Result<T>
pub fn with_spreadsheet<T, F>(&self, func: F) -> Result<T>where
F: FnOnce(&Spreadsheet) -> T,
pub fn formula_graph(&self, sheet_name: &str) -> Result<FormulaGraph>
pub fn named_items(&self) -> Result<Vec<NamedRangeDescriptor>>
pub fn sheet_overview(&self, sheet_name: &str) -> Result<SheetOverviewResponse>
pub fn detected_region( &self, sheet_name: &str, id: u32, ) -> Result<DetectedRegion>
Auto Trait Implementations§
impl !Freeze for WorkbookContext
impl !RefUnwindSafe for WorkbookContext
impl !UnwindSafe for WorkbookContext
impl Send for WorkbookContext
impl Sync for WorkbookContext
impl Unpin for WorkbookContext
impl UnsafeUnpin for WorkbookContext
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more