sdk
ModuleUndocumented.
Contents
2 submodules, and what the module defines itself.
use utopia_migration::sdk::Client;pub struct ClientA client of one project's API.
Default.use utopia_migration::sdk::Model;pub struct ModelA hydrated response model.
use utopia_migration::sdk::Input;pub enum InputA request parameter: a value, or a file.
use utopia_migration::sdk::MValue;pub enum MValueA value of a model property.
use utopia_migration::sdk::hydrate;pub fn hydrate(name: &'static str, data: &Array) -> Result<Model>Absent keys given their defaults, the required
keys checked, nested models and enums hydrated, and the constructor
called in strict mode (the models declare strict_types).
pub type Response = ValueA response body: decoded JSON, or the raw body.
pub const RESPONSE_FORMAT: &str = "2.0.0"The response format the requests ask for.
pub const VERSION: &str = "30.2.2"The SDK version the requests name.
sdk::query
Own pageQueries as the API takes them: JSON strings.
use utopia_migration::sdk::query::cursor_after;pub fn cursor_after(id: &str) -> StringUndocumented.
use utopia_migration::sdk::query::equal;pub fn equal(attribute: &str, value: Value) -> StringA list of values, or one value.
use utopia_migration::sdk::query::limit;pub fn limit(limit: i64) -> StringUndocumented.
use utopia_migration::sdk::query::list;pub fn list(queries: Vec<String>) -> ValueA list of queries as a request argument.
use utopia_migration::sdk::query::offset;pub fn offset(offset: i64) -> StringUndocumented.
use utopia_migration::sdk::query::select;pub fn select(attributes: Vec<String>) -> StringUndocumented.
sdk::spec_types
Own pageThe shapes of the generated SDK tables (super::spec).
use utopia_migration::sdk::spec_types::Arg;pub struct ArgAn argument of a method.
use utopia_migration::sdk::spec_types::Enum;pub struct EnumAn enum of the SDK.
use utopia_migration::sdk::spec_types::Field;pub struct FieldA property of a model.
use utopia_migration::sdk::spec_types::Method;pub struct MethodUndocumented.
use utopia_migration::sdk::spec_types::Model;pub struct ModelA response model.
use utopia_migration::sdk::spec_types::Param;pub struct ParamA request parameter of a method.