pub struct StatementRefBuilder { /* private fields */ }Expand description
A Type that knows how to construct a StatementRef.
Implementations§
Source§impl StatementRefBuilder
impl StatementRefBuilder
Sourcepub fn id(self, val: &str) -> Result<Self, DataError>
pub fn id(self, val: &str) -> Result<Self, DataError>
Set the id field parsing the argument as a UUID.
Raise DataError if argument is empty, cannot be parsed into a
valid UUID, or is all zeroes (nil UUID) or ones (max UUID).
Sourcepub fn id_as_uuid(self, uuid: Uuid) -> Result<Self, DataError>
pub fn id_as_uuid(self, uuid: Uuid) -> Result<Self, DataError>
Set the identifier for this instance using the given UUID.
Raise DataError if the given UUID is all zeroes (nil UUID) or
ones (max UUID).
Sourcepub fn build(&self) -> Result<StatementRef, DataError>
pub fn build(&self) -> Result<StatementRef, DataError>
Create a StatementRef instance.
Raise a DataError if the ID field is not set.
Trait Implementations§
Source§impl Debug for StatementRefBuilder
impl Debug for StatementRefBuilder
Source§impl Default for StatementRefBuilder
impl Default for StatementRefBuilder
Source§fn default() -> StatementRefBuilder
fn default() -> StatementRefBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatementRefBuilder
impl RefUnwindSafe for StatementRefBuilder
impl Send for StatementRefBuilder
impl Sync for StatementRefBuilder
impl Unpin for StatementRefBuilder
impl UnsafeUnpin for StatementRefBuilder
impl UnwindSafe for StatementRefBuilder
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