pinecone-sdk 0.1.2

Pinecone Rust SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::time::Duration;

/// Defines the wait policy for index creation.
#[derive(Clone, Debug, PartialEq)]
pub enum WaitPolicy {
    /// Wait for the index to become ready, up to the specified duration.
    WaitFor(Duration),

    /// Do not wait for the index to become ready -- return immediately.
    NoWait,
}

impl Default for WaitPolicy {
    fn default() -> Self {
        WaitPolicy::WaitFor(Duration::from_secs(300))
    }
}