Enum ciboulette::CibouletteOptionalData [−][src]
pub enum CibouletteOptionalData<T> { Object(T), Null(bool), }
Expand description
Wrapper for optional data
Providing a nuance between explicitely null-ed values and absent ones.
Variants
Null(bool)
Implementations
impl<T> CibouletteOptionalData<T>
[src]
impl<T> CibouletteOptionalData<T>
[src]impl<'request> CibouletteOptionalData<CibouletteResourceSelectorBuilder<'request>>
[src]
impl<'request> CibouletteOptionalData<CibouletteResourceSelectorBuilder<'request>>
[src]pub fn build(
self,
bag: &CibouletteStore,
intention: &CibouletteIntention
) -> Result<CibouletteBodyData<'request, CibouletteResourceIdentifierPermissive<'request>, MessyJsonObjectValue<'request>>, CibouletteError>
[src]
self,
bag: &CibouletteStore,
intention: &CibouletteIntention
) -> Result<CibouletteBodyData<'request, CibouletteResourceIdentifierPermissive<'request>, MessyJsonObjectValue<'request>>, CibouletteError>
Trait Implementations
impl<T: Clone> Clone for CibouletteOptionalData<T>
[src]
impl<T: Clone> Clone for CibouletteOptionalData<T>
[src]fn clone(&self) -> CibouletteOptionalData<T>
[src]
fn clone(&self) -> CibouletteOptionalData<T>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for CibouletteOptionalData<T>
[src]
impl<T: Debug> Debug for CibouletteOptionalData<T>
[src]impl<T> Default for CibouletteOptionalData<T>
[src]
impl<T> Default for CibouletteOptionalData<T>
[src]impl<'de, T> Deserialize<'de> for CibouletteOptionalData<T> where
T: Deserialize<'de>,
[src]
impl<'de, T> Deserialize<'de> for CibouletteOptionalData<T> where
T: Deserialize<'de>,
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for CibouletteOptionalData<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for CibouletteOptionalData<T> where
T: Send,
T: Send,
impl<T> Sync for CibouletteOptionalData<T> where
T: Sync,
T: Sync,
impl<T> Unpin for CibouletteOptionalData<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for CibouletteOptionalData<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,