wayclip-core 0.1.4

Core module for the Wayclip ecosystem: models, settings, and methods for App
use serde::{Deserialize, Serialize};

/// `auth` module responsible for models relating to authentication, primarily via device and user
/// code
pub mod auth;
/// `clips` module contains all the models that are assosciated with clips, such as hosted, local,
/// unified, tags
pub mod clips;
/// `daemon` module contains needed IPC models for daemon
#[cfg(feature = "daemon")]
pub mod daemon;
/// `error` module is responsible for providing WayclipError enum, handling internal and external
/// third-party errors
pub mod error;
/// `input` module contains models for keyboard & controller input
pub mod input;
/// `nutype` module creates structs and `utoipa` traits to make sure all the inputs to the API is
/// validated and sanitised. Most of the types defined in this module, are used inside the API
pub mod nutype;
/// `query` module is responsibel for housing the flexible types required for quering data from the API
pub mod query;
/// `users` module contains models used by API which contains the user & storage limit
pub mod users;

/// A global 'bytes' type
#[derive(Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
pub struct Bytes(Vec<u8>);