speakeasy-rust-sdk 0.5.0

Rust SDK for interacting with the Speakeasy Api platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
use regex::Captures;

pub fn get_first_capture<'a>(caps: &'a Captures) -> Option<&'a str> {
    for i in 1..caps.len() {
        if let Some(c) = caps.get(i) {
            return Some(c.as_str());
        }
    }

    None
}