pub struct ResourceBuilder { /* private fields */ }
Expand description
Builder for creating resources with fluent API
Implementations§
Source§impl ResourceBuilder
impl ResourceBuilder
Sourcepub fn description<S: Into<String>>(self, description: S) -> Self
pub fn description<S: Into<String>>(self, description: S) -> Self
Set the resource description
Sourcepub fn build<H>(self, handler: H) -> Resourcewhere
H: ResourceHandler + 'static,
pub fn build<H>(self, handler: H) -> Resourcewhere
H: ResourceHandler + 'static,
Build the resource with the given handler
Auto Trait Implementations§
impl Freeze for ResourceBuilder
impl RefUnwindSafe for ResourceBuilder
impl Send for ResourceBuilder
impl Sync for ResourceBuilder
impl Unpin for ResourceBuilder
impl UnwindSafe for ResourceBuilder
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