[][src]Crate zenkit

Rust client api for Zenkit

Modules

types

Structs

ApiClient

Zenkit API client in Rust

ApiConfig

Initialization parameters for Zenkit Api client

Item

Item in a list

ListInfo

A read-only reference to a List and its fields To modify list field definitions, use methods of workspace ..

Enums

Error

Errors returned by this crate

FieldVal

Hold value of field for set and update operations

Result

Result is a type that represents either success (Ok) or failure (Err).

Functions

fset_f

Set field with float value

fset_i

Set field with integer

fset_id

Set field with ID

fset_s

Set field with String value (Text, or number-to-string)

fset_t

Set field with formatted text

fset_vid

Set field to Vec of IDs

fset_vs

Update field to Vec of Strings (names, categories, or uuids)

fup_f

Update field with float value

fup_i

Update field with integer

fup_id

Update field with ID

fup_s

Update field with String and action

fup_t

Update field with formatted text

fup_vid

Update field to Vec of IDs

fup_vs

Update field to Vec of Strings (names, categories, or uuids)

get_api

Returns API handle, or error if not initialized

init_api

First-time initialization of Zenkit api client. If api was already initialized, returns Error::AlreadyInitialized

log_object

write json object to log file (in trace mode)

lookup_error

Get message associated with error code. If message isn't found, returns the code

Type Definitions

FieldSetVal

Parameters for setting a field