pub struct GtsOps {
pub verbose: usize,
pub cfg: GtsConfig,
pub path: Option<Vec<String>>,
pub store: GtsStore,
}Fields§
§verbose: usize§cfg: GtsConfig§path: Option<Vec<String>>§store: GtsStoreImplementations§
Source§impl GtsOps
impl GtsOps
pub fn new( path: Option<Vec<String>>, config: Option<String>, verbose: usize, ) -> Self
pub fn reload_from_path(&mut self, path: &[String])
pub fn add_entity( &mut self, content: &Value, validate: bool, ) -> GtsAddEntityResult
pub fn add_entities(&mut self, items: &[Value]) -> GtsAddEntitiesResult
pub fn add_schema( &mut self, type_id: String, schema: &Value, ) -> GtsAddSchemaResult
pub fn validate_id(gts_id: &str) -> GtsIdValidationResult
pub fn parse_id(gts_id: &str) -> GtsIdParseResult
pub fn match_id_pattern(candidate: &str, pattern: &str) -> GtsIdMatchResult
pub fn uuid(gts_id: &str) -> GtsUuidResult
pub fn validate_instance(&mut self, gts_id: &str) -> GtsValidationResult
pub fn validate_schema(&mut self, gts_id: &str) -> GtsValidationResult
pub fn validate_entity(&mut self, gts_id: &str) -> GtsEntityValidationResult
pub fn schema_graph(&mut self, gts_id: &str) -> GtsSchemaGraphResult
pub fn compatibility( &mut self, old_type_id: &str, new_type_id: &str, ) -> GtsEntityCastResult
pub fn cast(&mut self, from_id: &str, to_type_id: &str) -> GtsEntityCastResult
pub fn query(&self, expr: &str, limit: usize) -> GtsStoreQueryResult
pub fn attr(&mut self, gts_with_path: &str) -> JsonPathResolver
pub fn extract_id(&self, content: &Value) -> GtsExtractIdResult
pub fn get_entity(&mut self, gts_id: &str) -> GtsGetEntityResult
pub fn get_entities(&self, limit: usize) -> GtsEntitiesListResult
pub fn list(&self, limit: usize) -> GtsEntitiesListResult
Auto Trait Implementations§
impl !RefUnwindSafe for GtsOps
impl !Sync for GtsOps
impl !UnwindSafe for GtsOps
impl Freeze for GtsOps
impl Send for GtsOps
impl Unpin for GtsOps
impl UnsafeUnpin for GtsOps
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