pub struct Repository {
    pub id: RepositoryIdentity,
    pub created_at: OffsetDateTime,
    pub updated_at: OffsetDateTime,
    pub issues_and_pull_request_count: u32,
    pub fork_source: Option<RepositoryIdentity>,
    pub fork_count: u32,
    pub star_count: u32,
}

Fields§

§id: RepositoryIdentity§created_at: OffsetDateTime§updated_at: OffsetDateTime§issues_and_pull_request_count: u32§fork_source: Option<RepositoryIdentity>§fork_count: u32§star_count: u32

Trait Implementations§

source§

impl Clone for Repository

source§

fn clone(&self) -> Repository

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Repository

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Repository

source§

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 Repository

§

type KeyInput<'a> = RepositoryId<'a>

The inputs required to generate the entity’s primary key. Read more
§

type Table = App

The primary key for the entity Read more
§

type IndexKeys = (Gsi1, Gsi2, Gsi3)

The set of keys used to index the entity Read more
source§

fn primary_key(input: Self::KeyInput<'_>) -> Primary

Generate the primary key for an entity Read more
source§

fn full_key(&self) -> FullKey<Primary, Self::IndexKeys>

Generate the full set of keys for an entity Read more
source§

impl EntityDef for Repository

source§

const ENTITY_TYPE: &'static EntityTypeNameRef = _

The name of the entity type Read more
source§

const PROJECTED_ATTRIBUTES: &'static [&'static str] = _

The set of attributes that are projected into the entity Read more
source§

impl Serialize for Repository

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> EntityExt for Twhere T: Entity,

source§

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,

Convert the entity into a DynamoDB item Read more
source§

fn get(input: Self::KeyInput<'_>) -> Get

Prepares a get operation for the entity
source§

fn put(self) -> Putwhere Self: Serialize,

Prepares a put operation for the entity
source§

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,

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

Prepares an update operation for the entity Read more
source§

fn delete(key: Self::KeyInput<'_>) -> Delete

Prepares a delete operation for the entity
source§

fn condition_check( key: Self::KeyInput<'_>, condition: Condition ) -> ConditionCheck

Prepares a condition check operation for the entity, for transactional writes
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Projection for Twhere T: Entity,

§

type Entity = T

The entity type that this projection represents
source§

const PROJECTED_ATTRIBUTES: &'static [&'static str] = <Self::Entity as EntityDef>::PROJECTED_ATTRIBUTES

The set of attributes that are projected into the entity. Read more
source§

impl<'a, P> ProjectionExt for Pwhere P: Projection + Deserialize<'a>,

source§

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,

source§

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>

Generate a projection expression for the aggregate Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,