wwsvc-rs 4.2.0

A web client which is used to consume SoftENGINE's WEBSERVICES, a proprietary API for their software WEBWARE.
Documentation
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone)]
/// Credentials for the client.
pub struct Credentials {
    /// The service pass for the client.
    pub service_pass: String,
    /// The app id for the client.
    pub app_id: String,
}

impl Credentials {
    /// Creates a new `Credentials` struct.
    pub fn new(service_pass: &str, app_id: &str) -> Credentials {
        Credentials {
            service_pass: service_pass.to_string(),
            app_id: app_id.to_string(),
        }
    }
}