pve-api 0.1.0

A rust API library for Proxmox Virtual Environment
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 Luke Harding <luke@lukeh990.io>

use super::PveBuilder;

impl PveBuilder {
    pub fn api_token<S: Into<String>>(mut self, token_id: S, secret: S) -> Self {
        let token_id = token_id.into();
        let secret = secret.into();

        self.api_token = Some((token_id, secret));

        self
    }
}