typesensei 0.2.0

Typesense client library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug, Clone)]
pub struct NodeConfig {
    pub host: String,     // For Typesense Cloud use xxx.a1.typesense.net
    pub port: u16,        // For Typesense Cloud use 443
    pub protocol: String, // For Typesense Cloud use https
}

impl From<(String, u16, String)> for NodeConfig {
    fn from((host, port, protocol): (String, u16, String)) -> Self {
        Self {
            host,
            port,
            protocol,
        }
    }
}