pub trait CloudGetters {
// Required methods
fn domain(&self) -> String;
fn port(&self) -> String;
fn path(&self) -> String;
fn register_procedure(&self) -> String;
fn protocol(&self) -> String;
}
Expand description
The Getter functions for Cloud
Required Methods§
Sourcefn register_procedure(&self) -> String
fn register_procedure(&self) -> String
Get the register procedure that exists under Cloud
.
Implementations on Foreign Types§
Source§impl CloudGetters for Cloud
impl CloudGetters for Cloud
Source§fn domain(&self) -> String
fn domain(&self) -> String
Get the domain that exists under Cloud
.
§Examples
use feed::{CloudBuilder, CloudGetters};
let domain = "http://rpc.sys.com/";
let cloud = CloudBuilder::new()
.domain(domain)
.protocol("soap")
.finalize()
.unwrap();
assert_eq!(domain.to_owned(), cloud.domain());
Source§fn port(&self) -> String
fn port(&self) -> String
Get the port that exists under Cloud
.
§Examples
use feed::{CloudBuilder, CloudGetters};
let port: i64 = 80;
let cloud = CloudBuilder::new()
.port(port)
.domain("http://rpc.sys.com/")
.protocol("soap")
.finalize()
.unwrap();
assert_eq!(port.to_string(), cloud.port());
Source§fn path(&self) -> String
fn path(&self) -> String
Get the path that exists under Cloud
.
§Examples
use feed::{CloudBuilder, CloudGetters};
let path = "/RPC2";
let cloud = CloudBuilder::new()
.path(path)
.domain("http://rpc.sys.com/")
.protocol("soap")
.finalize()
.unwrap();
assert_eq!(path.to_owned(), cloud.path());
Source§fn register_procedure(&self) -> String
fn register_procedure(&self) -> String
Get the register procedure that exists under Cloud
.
§Examples
use feed::{CloudBuilder, CloudGetters};
let register_procedure = "pingMe";
let cloud = CloudBuilder::new()
.register_procedure(register_procedure)
.domain("http://rpc.sys.com/")
.protocol("soap")
.finalize()
.unwrap();
assert_eq!(register_procedure.to_owned(), cloud.register_procedure());
Source§fn protocol(&self) -> String
fn protocol(&self) -> String
Get the protocol that exists under Cloud
.
§Examples
use feed::{CloudBuilder, CloudGetters};
let protocol = "soap";
let cloud = CloudBuilder::new()
.protocol(protocol)
.domain("http://rpc.sys.com/")
.finalize()
.unwrap();
assert_eq!(protocol.to_owned(), cloud.protocol());