pub struct CloudBuilder { /* private fields */ }
Expand description
This CloudBuilder
struct creates the Cloud
.
Implementations§
Source§impl CloudBuilder
impl CloudBuilder
Sourcepub fn new() -> CloudBuilder
pub fn new() -> CloudBuilder
Construct a new CloudBuilder
and return default values.
§Examples
use feed::CloudBuilder;
let cloud_builder = CloudBuilder::new();
Sourcepub fn domain(&mut self, domain: &str) -> &mut CloudBuilder
pub fn domain(&mut self, domain: &str) -> &mut CloudBuilder
Set the domain that exists under Cloud
.
§Examples
use feed::CloudBuilder;
let mut cloud_builder = CloudBuilder::new();
cloud_builder.domain("http://rpc.sys.com/");
Sourcepub fn port(&mut self, port: i64) -> &mut CloudBuilder
pub fn port(&mut self, port: i64) -> &mut CloudBuilder
Set the port that exists under Cloud
.
§Examples
use feed::CloudBuilder;
let mut cloud_builder = CloudBuilder::new();
cloud_builder.port(80);
Sourcepub fn path(&mut self, path: &str) -> &mut CloudBuilder
pub fn path(&mut self, path: &str) -> &mut CloudBuilder
Set the path that exists under Cloud
.
§Examples
use feed::CloudBuilder;
let mut cloud_builder = CloudBuilder::new();
cloud_builder.path("/RPC2");
Sourcepub fn register_procedure(
&mut self,
register_procedure: &str,
) -> &mut CloudBuilder
pub fn register_procedure( &mut self, register_procedure: &str, ) -> &mut CloudBuilder
Set the register procedure that exists under Cloud
.
§Examples
use feed::CloudBuilder;
let mut cloud_builder = CloudBuilder::new();
cloud_builder.register_procedure("pingMe");
Sourcepub fn protocol(&mut self, protocol: &str) -> &mut CloudBuilder
pub fn protocol(&mut self, protocol: &str) -> &mut CloudBuilder
Set the protocol that exists under Cloud
.
§Examples
use feed::CloudBuilder;
let mut cloud_builder = CloudBuilder::new();
cloud_builder.protocol("soap");
Sourcepub fn validate(&mut self) -> Result<&mut CloudBuilder, String>
pub fn validate(&mut self) -> Result<&mut CloudBuilder, String>
Validate the contents of Cloud
.
§Examples
use feed::CloudBuilder;
let cloud = CloudBuilder::new()
.domain("http://rpc.sys.com/")
.port(80)
.path("/RPC2")
.register_procedure("pingMe")
.protocol("soap")
.validate().unwrap()
.finalize().unwrap();
Trait Implementations§
Source§impl Clone for CloudBuilder
impl Clone for CloudBuilder
Source§fn clone(&self) -> CloudBuilder
fn clone(&self) -> CloudBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for CloudBuilder
impl Default for CloudBuilder
Source§fn default() -> CloudBuilder
fn default() -> CloudBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CloudBuilder
impl RefUnwindSafe for CloudBuilder
impl Send for CloudBuilder
impl Sync for CloudBuilder
impl Unpin for CloudBuilder
impl UnwindSafe for CloudBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more