pub struct RecordSpec { /* private fields */ }Expand description
Application-facing record construction intent.
Implementations§
Source§impl RecordSpec
impl RecordSpec
Sourcepub fn from_data(data: impl IntoRecordData) -> Self
pub fn from_data(data: impl IntoRecordData) -> Self
Start with Blob data.
pub fn by_secret(self, by_secret: impl Into<BySecret>) -> Self
pub fn field(self, name: impl Into<String>, value: impl Into<String>) -> Self
pub fn fields<I, N, V>(self, fields: I) -> Self
pub fn data(self, data: impl IntoRecordData) -> Self
Trait Implementations§
Source§impl Clone for RecordSpec
impl Clone for RecordSpec
Source§fn clone(&self) -> RecordSpec
fn clone(&self) -> RecordSpec
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 moreSource§impl Debug for RecordSpec
impl Debug for RecordSpec
Source§impl Default for RecordSpec
impl Default for RecordSpec
Source§fn default() -> RecordSpec
fn default() -> RecordSpec
Returns the “default value” for a type. Read more
impl Eq for RecordSpec
Source§impl PartialEq for RecordSpec
impl PartialEq for RecordSpec
Source§fn eq(&self, other: &RecordSpec) -> bool
fn eq(&self, other: &RecordSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecordSpec
Auto Trait Implementations§
impl Freeze for RecordSpec
impl RefUnwindSafe for RecordSpec
impl Send for RecordSpec
impl Sync for RecordSpec
impl Unpin for RecordSpec
impl UnsafeUnpin for RecordSpec
impl UnwindSafe for RecordSpec
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