Crate z_osmf

Source
Expand description

§z_osmf

The VERY work in progress Rust z/OSMFTM Client.

§Examples

Create a ZOsmf client and authenticate:

let client = reqwest::Client::new();
let base_url = "https://mainframe.my-company.com";
let zosmf = z_osmf::ZOsmf::new(client, base_url);
zosmf.login("USERNAME", "PASSWORD").await?;

List your datasets:

let my_datasets = zosmf
    .datasets()
    .list("USERNAME")
    .build()
    .await?;
for dataset in my_datasets.items().iter() {
    println!("{}", dataset.name());
}

List the files in your home directory:

let my_files = zosmf
    .files()
    .list("/u/username")
    .build()
    .await?;
for file in my_files.items().iter() {
    println!("{}", file.name());
}

List all active jobs:

let active_jobs = zosmf
    .jobs()
    .list()
    .owner("*")
    .active_only(true)
    .build()
    .await?;
for job in active_jobs.items().iter() {
    println!("{}", job.name());
}

Re-exports§

pub use self::error::Error;
pub use self::error::Result;

Modules§

datasetsdatasets
error
filesfiles
info
jobsjobs
restfilesdatasets or files
Functionality shared between the datasets and files modules
system_variablessystem-variables
workflowsworkflows

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
ZOsmf
ZOsmf

Enums§

AuthToken