pub struct ResourceBuilder { /* private fields */ }Expand description
Builder for Resource.
Implementations§
Source§impl ResourceBuilder
impl ResourceBuilder
Sourcepub fn new(uri: impl Into<String>, name: impl Into<String>) -> Self
pub fn new(uri: impl Into<String>, name: impl Into<String>) -> Self
Create a new resource builder.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description.
Sourcepub fn annotations(self, annotations: ResourceAnnotations) -> Self
pub fn annotations(self, annotations: ResourceAnnotations) -> Self
Set the annotations.
Trait Implementations§
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