pub struct TagCreateBuilder { /* private fields */ }Expand description
Builder for constructing validated tag create payloads.
Implementations§
Source§impl TagCreateBuilder
impl TagCreateBuilder
Sourcepub fn new(name: impl Into<String>, workspace: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, workspace: impl Into<String>) -> Self
Start building a new tag payload with the required name and workspace.
Sourcepub fn build(self) -> Result<TagCreateRequest, TagValidationError>
pub fn build(self) -> Result<TagCreateRequest, TagValidationError>
Finalise the builder into a request payload performing validation.
§Errors
Returns a validation error if mandatory fields are missing or invalid.
Trait Implementations§
Source§impl Clone for TagCreateBuilder
impl Clone for TagCreateBuilder
Source§fn clone(&self) -> TagCreateBuilder
fn clone(&self) -> TagCreateBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TagCreateBuilder
impl RefUnwindSafe for TagCreateBuilder
impl Send for TagCreateBuilder
impl Sync for TagCreateBuilder
impl Unpin for TagCreateBuilder
impl UnsafeUnpin for TagCreateBuilder
impl UnwindSafe for TagCreateBuilder
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