pub struct ServiceBuilder { /* private fields */ }
Expand description
Service builder to assist in the construction of service instances
Implementations§
Source§impl ServiceBuilder
ServiceBuilder provides helpers for constructing service instances
impl ServiceBuilder
ServiceBuilder provides helpers for constructing service instances
Sourcepub fn id(self, id: Id, public_key: PublicKey) -> Self
pub fn id(self, id: Id, public_key: PublicKey) -> Self
Set the ID and public key for the service
pub fn kind(self, kind: PageKind) -> Self
pub fn body(self, body: Body) -> Self
pub fn private_key(self, private_key: PrivateKey) -> Self
pub fn secret_key(self, secret_key: SecretKey) -> Self
pub fn application_id(self, application_id: u16) -> Self
Sourcepub fn encrypt(self) -> Self
pub fn encrypt(self) -> Self
Enable service encryption this is equivalent to .secret_key(crypto::new_sk().unwrap()).encrypted(true);
pub fn public_options(self, o: Vec<Options>) -> Self
pub fn private_options(self, o: Vec<Options>) -> Self
pub fn build(self) -> Result<Service, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServiceBuilder
impl RefUnwindSafe for ServiceBuilder
impl Send for ServiceBuilder
impl Sync for ServiceBuilder
impl Unpin for ServiceBuilder
impl UnwindSafe for ServiceBuilder
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