pub struct KeyBuilder { /* private fields */ }Implementations§
Source§impl KeyBuilder
impl KeyBuilder
pub fn type(self, type: impl Into<KeyType>) -> Self
pub fn number(self, number: impl Into<f64>) -> Self
pub fn string(self, string: impl Into<String>) -> Self
pub fn date(self, date: impl Into<f64>) -> Self
pub fn array(self, array: impl Into<Key>) -> Self
pub fn arrays<I, S>(self, arrays: I) -> Self
pub fn build(self) -> Result<Key, String>
Trait Implementations§
Source§impl Clone for KeyBuilder
impl Clone for KeyBuilder
Source§fn clone(&self) -> KeyBuilder
fn clone(&self) -> KeyBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for KeyBuilder
impl Default for KeyBuilder
Source§fn default() -> KeyBuilder
fn default() -> KeyBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeyBuilder
impl RefUnwindSafe for KeyBuilder
impl Send for KeyBuilder
impl Sync for KeyBuilder
impl Unpin for KeyBuilder
impl UnwindSafe for KeyBuilder
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