slack-blocks 0.25.0

Models + clientside validation for Slack's JSON Block Kit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Module containing helper types for static builder structs

use std::marker::PhantomData;

/// Type indicating that some marker `T` has been set
#[derive(Debug)]
pub struct Set<T>(PhantomData<T>);

/// Type indicating that some optional marker `T` has not been set
#[derive(Debug)]
pub struct OptionalMethodNotCalled<T>(PhantomData<T>);

/// Type indicating that some required marker `T` has not been set
#[derive(Debug)]
pub struct RequiredMethodNotCalled<T>(PhantomData<T>);