Enum lightspeed_cms::model::content::ContentFieldValue
source · pub enum ContentFieldValue {
Number {
value: ContentFieldValueArity<Option<u64>>,
},
Slug {
value: ContentFieldValueArity<Option<String>>,
},
String {
value: ContentFieldValueArity<Option<String>>,
},
Boolean {
value: ContentFieldValueArity<Option<bool>>,
},
}
Variants§
Number
Fields
§
value: ContentFieldValueArity<Option<u64>>
Slug
Fields
§
value: ContentFieldValueArity<Option<String>>
String
Fields
§
value: ContentFieldValueArity<Option<String>>
Boolean
Fields
§
value: ContentFieldValueArity<Option<bool>>
Trait Implementations§
source§impl Clone for ContentFieldValue
impl Clone for ContentFieldValue
source§fn clone(&self) -> ContentFieldValue
fn clone(&self) -> ContentFieldValue
Returns a copy 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<'de> Deserialize<'de> for ContentFieldValue
impl<'de> Deserialize<'de> for ContentFieldValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ContentFieldValue
impl Send for ContentFieldValue
impl Sync for ContentFieldValue
impl Unpin for ContentFieldValue
impl UnwindSafe for ContentFieldValue
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