pub struct DroppedContribution {
pub source: SourceId,
pub reason: DropReason,
pub tokens: usize,
}Expand description
Record of a contribution that didn’t make it into the final
crate::types::Brief.
Fields§
§source: SourceIdSource that produced the dropped contribution.
reason: DropReasonWhy it was dropped.
tokens: usizeTokens it would have cost.
Trait Implementations§
Source§impl Clone for DroppedContribution
impl Clone for DroppedContribution
Source§fn clone(&self) -> DroppedContribution
fn clone(&self) -> DroppedContribution
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 DroppedContribution
impl Debug for DroppedContribution
Source§impl<'de> Deserialize<'de> for DroppedContribution
impl<'de> Deserialize<'de> for DroppedContribution
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
impl Eq for DroppedContribution
Source§impl PartialEq for DroppedContribution
impl PartialEq for DroppedContribution
Source§fn eq(&self, other: &DroppedContribution) -> bool
fn eq(&self, other: &DroppedContribution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DroppedContribution
impl Serialize for DroppedContribution
impl StructuralPartialEq for DroppedContribution
Auto Trait Implementations§
impl Freeze for DroppedContribution
impl RefUnwindSafe for DroppedContribution
impl Send for DroppedContribution
impl Sync for DroppedContribution
impl Unpin for DroppedContribution
impl UnsafeUnpin for DroppedContribution
impl UnwindSafe for DroppedContribution
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