MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / build

Method build

nodedb-array/src/schema/builder.rs:65–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 }
64
65 pub fn build(self) -> ArrayResult<ArraySchema> {
66 validation::dims::check(&self.name, &self.dims)?;
67 validation::attrs::check(&self.name, &self.attrs)?;
68 validation::tiles::check(&self.name, &self.dims, &self.tile_extents)?;
69 Ok(ArraySchema {
70 name: self.name,
71 dims: self.dims,
72 attrs: self.attrs,
73 tile_extents: self.tile_extents,
74 cell_order: self.cell_order,
75 tile_order: self.tile_order,
76 })
77 }
78}
79
80#[cfg(test)]

Calls 1

checkFunction · 0.50