Rust

Undocumented.

Contents

2 submodules, and what the module defines itself.

use utopia_migration::sdk::Client;
Rust
pub struct Client

A client of one project's API.

Also implements Default.
use utopia_migration::sdk::Model;
Rust
pub struct Model

A hydrated response model.

use utopia_migration::sdk::Input;
Rust
pub enum Input

A request parameter: a value, or a file.

use utopia_migration::sdk::MValue;
Rust
pub enum MValue

A value of a model property.

use utopia_migration::sdk::hydrate;
Rust
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).

Rust
pub type Response = Value

A response body: decoded JSON, or the raw body.

Rust
pub const RESPONSE_FORMAT: &str = "2.0.0"

The response format the requests ask for.

Rust
pub const VERSION: &str = "30.2.2"

The SDK version the requests name.

sdk::query

Own page

Queries as the API takes them: JSON strings.

use utopia_migration::sdk::query::cursor_after;
Rust
pub fn cursor_after(id: &str) -> String

Undocumented.

use utopia_migration::sdk::query::equal;
Rust
pub fn equal(attribute: &str, value: Value) -> String

A list of values, or one value.

use utopia_migration::sdk::query::limit;
Rust
pub fn limit(limit: i64) -> String

Undocumented.

use utopia_migration::sdk::query::list;
Rust
pub fn list(queries: Vec<String>) -> Value

A list of queries as a request argument.

use utopia_migration::sdk::query::offset;
Rust
pub fn offset(offset: i64) -> String

Undocumented.

use utopia_migration::sdk::query::select;
Rust
pub fn select(attributes: Vec<String>) -> String

Undocumented.

sdk::spec_types

Own page

The shapes of the generated SDK tables (super::spec).

use utopia_migration::sdk::spec_types::Arg;
Rust
pub struct Arg

An argument of a method.

use utopia_migration::sdk::spec_types::Enum;
Rust
pub struct Enum

An enum of the SDK.

use utopia_migration::sdk::spec_types::Field;
Rust
pub struct Field

A property of a model.

use utopia_migration::sdk::spec_types::Method;
Rust
pub struct Method

Undocumented.

use utopia_migration::sdk::spec_types::Model;
Rust
pub struct Model

A response model.

use utopia_migration::sdk::spec_types::Param;
Rust
pub struct Param

A request parameter of a method.