Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It should be possible to obtain the path of a sub-client. #7

Open
datdenkikniet opened this issue Apr 14, 2024 · 1 comment · May be fixed by #15
Open

It should be possible to obtain the path of a sub-client. #7

datdenkikniet opened this issue Apr 14, 2024 · 1 comment · May be fixed by #15

Comments

@datdenkikniet
Copy link
Owner

datdenkikniet commented Apr 14, 2024

Getting the path from a sub-client should be possible so that it could even become possible to store/transmit paths and payloads completely independently.

For instance:

let my_client = Client::new("https://10.0.1.1:8006", "user", "password");

let ct = NodesClient::new(&my_client).nodes().node("proxmox").lxc().vmid(VmId::new(100).unwrap());
let ct_path = ct.path();
assert_eq!(ct_path.as_ref(),  "/nodes/proxmox/lxc/100");
@Murasame233
Copy link
Contributor

implement a trait called get_path, and generate it with generator

@datdenkikniet datdenkikniet linked a pull request Apr 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants