#[non_exhaustive]pub struct SyntheticField {
pub field_name: String,
pub content: Option<Content>,
/* private fields */
}Available on crate feature
data-foundry-service only.Expand description
Represents a single named field within a SyntheticExample.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field_name: StringOptional. The name of the field.
content: Option<Content>Required. The content of the field.
Implementations§
Source§impl SyntheticField
impl SyntheticField
pub fn new() -> Self
Sourcepub fn set_field_name<T: Into<String>>(self, v: T) -> Self
pub fn set_field_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_content<T>(self, v: T) -> Self
pub fn set_content<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_content<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_content<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for SyntheticField
impl Clone for SyntheticField
Source§fn clone(&self) -> SyntheticField
fn clone(&self) -> SyntheticField
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 Debug for SyntheticField
impl Debug for SyntheticField
Source§impl Default for SyntheticField
impl Default for SyntheticField
Source§fn default() -> SyntheticField
fn default() -> SyntheticField
Returns the “default value” for a type. Read more
Source§impl Message for SyntheticField
impl Message for SyntheticField
Source§impl PartialEq for SyntheticField
impl PartialEq for SyntheticField
impl StructuralPartialEq for SyntheticField
Auto Trait Implementations§
impl Freeze for SyntheticField
impl RefUnwindSafe for SyntheticField
impl Send for SyntheticField
impl Sync for SyntheticField
impl Unpin for SyntheticField
impl UnwindSafe for SyntheticField
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