pub struct Presence {
pub optional: bool,
pub nullable: bool,
}Expand description
Two independent axes, not one. An absent key means “don’t touch this field”; an explicit null means “clear it”.
.seam | optional | nullable |
|---|---|---|
String | false | false |
String? | false | true |
optional String | true | false |
optional String? | true | true |
Fields§
§optional: bool§nullable: boolImplementations§
Trait Implementations§
impl Copy for Presence
impl Eq for Presence
impl StructuralPartialEq for Presence
Auto Trait Implementations§
impl Freeze for Presence
impl RefUnwindSafe for Presence
impl Send for Presence
impl Sync for Presence
impl Unpin for Presence
impl UnsafeUnpin for Presence
impl UnwindSafe for Presence
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