31 releases (18 breaking)

new 0.28.0 Dec 12, 2024
0.27.0 Nov 20, 2024
0.26.0 Nov 18, 2024
0.17.0-rc.1 Jul 19, 2024
0.0.0 Feb 8, 2023

#948 in Database interfaces

Download history 228/week @ 2024-08-22 649/week @ 2024-08-29 392/week @ 2024-09-05 511/week @ 2024-09-12 590/week @ 2024-09-19 532/week @ 2024-09-26 501/week @ 2024-10-03 758/week @ 2024-10-10 1032/week @ 2024-10-17 565/week @ 2024-10-24 648/week @ 2024-10-31 619/week @ 2024-11-07 586/week @ 2024-11-14 388/week @ 2024-11-21 330/week @ 2024-11-28 273/week @ 2024-12-05

1,651 downloads per month

EUPL-1.2

76KB
1.5K SLoC

OpenTalk Types

This crate contains datatypes used in the Rest API and WebSockets signaling API of OpenTalk.

⚠️ At this point no guarantees for backwards compatibility can be given.


lib.rs:

Data types for OpenTalk.

This crate contains all data types that are used in the OpenTalk web and signaling APIs.

Features

default

This is the "easy" way to use this crate, unless you need specific functionalities for the backend, then you should use the backend feature instead.

Depends on:

  • frontend

backend

Set the backend feature for using the types anywhere in the backend (e.g., a signaling module, the OpenTalk controller implementation, the OpenTalk room server).

Depends on:

  • diesel
  • redis
  • kustos
  • serde
  • rand

frontend

Set the frontend feature for using the types in a client. Because the default feature depends on this, you probably don't need to set it explicitly, unless you have set default-features = false.

diesel

Adds Diesel type mappings to simple newtypes, so they can be stored in a database through the ORM.

Depends on:

  • serde

redis

Implements Redis ToRedisArgs and FromRedisValue for types that can be stored on a redis server.

Depends on:

  • serde

kustos

Annotates identifier newtypes with a kustos resource implementation.

rand

Some functions for generating values from random numbers are gated by this flag. These are typically used on the backend for creating new identifiers or tokens.

serde

Derives serde::Serialize and serde::Deserialize for all types that can be serialized or deserialized for usage in the web and signaling APIs as well as Diesel and Redis.

Dependencies

~8–29MB
~403K SLoC