pub struct ConsumerScore {
pub score: u8,
pub producer_score: u8,
pub producer_scores: Vec<u8>,
}
Expand description
The table ConsumerScore
in the namespace FBS.Consumer
Generated from these locations:
- Table
ConsumerScore
in the filefbs/consumer.fbs:13
Fields§
§score: u8
The field score
in the table ConsumerScore
producer_score: u8
The field producer_score
in the table ConsumerScore
producer_scores: Vec<u8>
The field producer_scores
in the table ConsumerScore
Implementations§
Source§impl ConsumerScore
impl ConsumerScore
Sourcepub fn builder() -> ConsumerScoreBuilder<()>
pub fn builder() -> ConsumerScoreBuilder<()>
Creates a ConsumerScoreBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_score: impl WriteAsDefault<u8, u8>, field_producer_score: impl WriteAsDefault<u8, u8>, field_producer_scores: impl WriteAs<Offset<[u8]>>, ) -> Offset<Self>
Trait Implementations§
Source§impl Clone for ConsumerScore
impl Clone for ConsumerScore
Source§fn clone(&self) -> ConsumerScore
fn clone(&self) -> ConsumerScore
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 Debug for ConsumerScore
impl Debug for ConsumerScore
Source§impl<'de> Deserialize<'de> for ConsumerScore
impl<'de> Deserialize<'de> for ConsumerScore
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 Hash for ConsumerScore
impl Hash for ConsumerScore
Source§impl Ord for ConsumerScore
impl Ord for ConsumerScore
Source§fn cmp(&self, other: &ConsumerScore) -> Ordering
fn cmp(&self, other: &ConsumerScore) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConsumerScore
impl PartialEq for ConsumerScore
Source§impl PartialOrd for ConsumerScore
impl PartialOrd for ConsumerScore
Source§impl Serialize for ConsumerScore
impl Serialize for ConsumerScore
Source§impl<'a> TryFrom<ConsumerScoreRef<'a>> for ConsumerScore
impl<'a> TryFrom<ConsumerScoreRef<'a>> for ConsumerScore
impl Eq for ConsumerScore
impl StructuralPartialEq for ConsumerScore
impl VectorWrite<Offset<ConsumerScore>> for ConsumerScore
impl WriteAs<Offset<ConsumerScore>> for ConsumerScore
impl WriteAsOffset<ConsumerScore> for ConsumerScore
impl<T0: WriteAsDefault<u8, u8>, T1: WriteAsDefault<u8, u8>, T2: WriteAs<Offset<[u8]>>> WriteAsOffset<ConsumerScore> for ConsumerScoreBuilder<(T0, T1, T2)>
impl WriteAsOptional<Offset<ConsumerScore>> for ConsumerScore
Auto Trait Implementations§
impl Freeze for ConsumerScore
impl RefUnwindSafe for ConsumerScore
impl Send for ConsumerScore
impl Sync for ConsumerScore
impl Unpin for ConsumerScore
impl UnwindSafe for ConsumerScore
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