pub struct FoodMenuSection {
pub labels: Vec<FoodMenuLabel>,
pub items: Option<Vec<FoodMenuItem>>,
}Fields§
§labels: Vec<FoodMenuLabel>§items: Option<Vec<FoodMenuItem>>Implementations§
Source§impl FoodMenuSection
impl FoodMenuSection
pub fn new(labels: Vec<FoodMenuLabel>) -> FoodMenuSection
Trait Implementations§
Source§impl Clone for FoodMenuSection
impl Clone for FoodMenuSection
Source§fn clone(&self) -> FoodMenuSection
fn clone(&self) -> FoodMenuSection
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 FoodMenuSection
impl Debug for FoodMenuSection
Source§impl Default for FoodMenuSection
impl Default for FoodMenuSection
Source§fn default() -> FoodMenuSection
fn default() -> FoodMenuSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FoodMenuSection
impl<'de> Deserialize<'de> for FoodMenuSection
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
Source§impl PartialEq for FoodMenuSection
impl PartialEq for FoodMenuSection
Source§fn eq(&self, other: &FoodMenuSection) -> bool
fn eq(&self, other: &FoodMenuSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FoodMenuSection
impl Serialize for FoodMenuSection
impl StructuralPartialEq for FoodMenuSection
Auto Trait Implementations§
impl Freeze for FoodMenuSection
impl RefUnwindSafe for FoodMenuSection
impl Send for FoodMenuSection
impl Sync for FoodMenuSection
impl Unpin for FoodMenuSection
impl UnsafeUnpin for FoodMenuSection
impl UnwindSafe for FoodMenuSection
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