pub struct ExposeBuilder { /* private fields */ }
Expand description
A convenience builder for constructing [ExposeDecl]s.
To use, call the constructor matching their capability type (ExposeBuilder::protocol, ExposeBuilder::directory, etc.), and then call methods to set properties. When done, call ExposeBuilder::build (or Into::into) to generate the [ExposeDecl].
Implementations§
Source§impl ExposeBuilder
impl ExposeBuilder
pub fn protocol() -> Self
pub fn service() -> Self
pub fn directory() -> Self
pub fn runner() -> Self
pub fn resolver() -> Self
pub fn dictionary() -> Self
pub fn config() -> Self
pub fn name(self, name: &str) -> Self
pub fn target_name(self, name: &str) -> Self
pub fn from_dictionary(self, dictionary: &str) -> Self
pub fn source(self, source: ExposeSource) -> Self
pub fn source_static_child(self, source: &str) -> Self
pub fn target(self, target: ExposeTarget) -> Self
pub fn availability(self, availability: Availability) -> Self
pub fn rights(self, rights: Operations) -> Self
pub fn subdir(self, subdir: &str) -> Self
pub fn build(self) -> ExposeDecl
Trait Implementations§
Source§impl Debug for ExposeBuilder
impl Debug for ExposeBuilder
Source§impl From<ExposeBuilder> for ExposeDecl
impl From<ExposeBuilder> for ExposeDecl
Source§fn from(builder: ExposeBuilder) -> Self
fn from(builder: ExposeBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExposeBuilder
impl RefUnwindSafe for ExposeBuilder
impl Send for ExposeBuilder
impl Sync for ExposeBuilder
impl Unpin for ExposeBuilder
impl UnwindSafe for ExposeBuilder
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