Struct dynamodb_book_ch21_github::Reaction
source · pub struct Reaction {
pub repo: RepositoryIdentity,
pub target_type: ReactionTarget,
pub reacting_user: OwnerName,
pub reactions: BTreeSet<CompactString>,
}
Fields§
§repo: RepositoryIdentity
§target_type: ReactionTarget
§reacting_user: OwnerName
§reactions: BTreeSet<CompactString>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Reaction
impl<'de> Deserialize<'de> for Reaction
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 Entity for Reaction
impl Entity for Reaction
§type KeyInput<'a> = ReactionId<'a>
type KeyInput<'a> = ReactionId<'a>
The inputs required to generate the entity’s primary key. Read more
source§impl EntityDef for Reaction
impl EntityDef for Reaction
source§const ENTITY_TYPE: &'static EntityTypeNameRef = _
const ENTITY_TYPE: &'static EntityTypeNameRef = _
The name of the entity type Read more
source§const PROJECTED_ATTRIBUTES: &'static [&'static str] = _
const PROJECTED_ATTRIBUTES: &'static [&'static str] = _
The set of attributes that are projected into the entity Read more
Auto Trait Implementations§
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnwindSafe for Reaction
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
source§impl<T> EntityExt for Twhere
T: Entity,
impl<T> EntityExt for Twhere T: Entity,
source§const KEY_DEFINITION: PrimaryKeyDefinition = <<Self::Table as Table>::PrimaryKey as
keys::PrimaryKey>::PRIMARY_KEY_DEFINITION
const KEY_DEFINITION: PrimaryKeyDefinition = <<Self::Table as Table>::PrimaryKey as keys::PrimaryKey>::PRIMARY_KEY_DEFINITION
The definition for the entity’s primary key
source§fn into_item(self) -> HashMap<String, AttributeValue, RandomState>where
Self: Serialize,
fn into_item(self) -> HashMap<String, AttributeValue, RandomState>where Self: Serialize,
Convert the entity into a DynamoDB item Read more
source§fn create(self) -> ConditionalPutwhere
Self: Serialize,
fn create(self) -> ConditionalPutwhere Self: Serialize,
Prepares a put operation for the entity that requires that
no entity already exist with the same key
source§fn replace(self) -> ConditionalPutwhere
Self: Serialize,
fn replace(self) -> ConditionalPutwhere Self: Serialize,
Prepares a put operation for the entity that requires that
an entity already exist with the same key
source§fn update(key: Self::KeyInput<'_>) -> Update
fn update(key: Self::KeyInput<'_>) -> Update
Prepares an update operation for the entity Read more
source§fn condition_check(
key: Self::KeyInput<'_>,
condition: Condition
) -> ConditionCheck
fn condition_check( key: Self::KeyInput<'_>, condition: Condition ) -> ConditionCheck
Prepares a condition check operation for the entity, for transactional writes
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Projection for Twhere
T: Entity,
impl<T> Projection for Twhere T: Entity,
source§impl<'a, P> ProjectionExt for Pwhere
P: Projection + Deserialize<'a>,
impl<'a, P> ProjectionExt for Pwhere P: Projection + Deserialize<'a>,
source§fn from_item(
item: HashMap<String, AttributeValue, RandomState>
) -> Result<P, Error>
fn from_item( item: HashMap<String, AttributeValue, RandomState> ) -> Result<P, Error>
Deserialize a DynamoDB item into this projection
source§impl<'a, P> ProjectionSet for Pwhere
P: Projection + Deserialize<'a> + 'static,
impl<'a, P> ProjectionSet for Pwhere P: Projection + Deserialize<'a> + 'static,
source§fn try_from_item(
item: HashMap<String, AttributeValue, RandomState>
) -> Result<Option<P>, Error>
fn try_from_item( item: HashMap<String, AttributeValue, RandomState> ) -> Result<Option<P>, Error>
Attempt to parse an known entity from a DynamoDB item Read more
source§fn projection_expression() -> Option<StaticProjection>
fn projection_expression() -> Option<StaticProjection>
Generate a projection expression for the aggregate Read more