Rust SDK

The Rust package is currently consumed as a path dependency; it is not documented as a published crates.io package.

toml
[dependencies]
vine_sdk = { path = "../rust-sdk" }
tokio = { version = "1", features = ["full"] }
rust
let client = VineClient::new(std::env::var("VINE_API_KEY")?)?;
let result = client.init_flow(InitFlowRequest {
    vid: "657787756543".to_owned(),
    request_type: FlowRequestType::Login,
    scope: vec!["profile.read".to_owned()],
    context: None,
    webhook_url: None,
}).await?;

On success, retain flow_secret server-side before calling get_flow_status. Handle the explicit missing-data result before proceeding.