Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 authored and denwong47 committed Jan 20, 2023
1 parent ba9983b commit edf9607
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/database/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct Statement {
pub db_backend: DbBackend,
}

/// Anything that can build a [Statement]
/// Any type that can build a [Statement]
pub trait StatementBuilder {
/// Method to call in order to build a [Statement]
fn build(&self, db_backend: &DbBackend) -> Statement;
Expand Down
2 changes: 1 addition & 1 deletion src/entity/active_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ where
}
}

/// Constraints to perform the conversion of a type into an [ActiveValue]
/// Any type that can be converted into an [ActiveValue]
pub trait IntoActiveValue<V>
where
V: Into<Value>,
Expand Down
2 changes: 1 addition & 1 deletion src/entity/base_entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub trait EntityName: IdenStatic + Default {
}
}

/// An Entity implementing `EntityTrait` represents a table in a database.
/// An abstract base class for defining Entities.
///
/// This trait provides an API for you to inspect it's properties
/// - Column (implemented [`ColumnTrait`])
Expand Down
2 changes: 1 addition & 1 deletion src/entity/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ macro_rules! bind_subquery_func {
}

// LINT: when the operand value does not match column type
/// Wrapper of the identically named method in [`sea_query::Expr`]
/// API for working with a `Column`. Mostly a wrapper of the identically named methods in [`sea_query::Expr`]
pub trait ColumnTrait: IdenStatic + Iterable + FromStr {
#[allow(missing_docs)]
type EntityName: EntityName;
Expand Down
2 changes: 1 addition & 1 deletion src/entity/relation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub enum RelationType {
/// to an ActiveModel
pub type ForeignKeyAction = sea_query::ForeignKeyAction;

/// Constraints a type to implement the trait to create a relationship
/// Defines the relations of an Entity
pub trait RelationTrait: Iterable + Debug + 'static {
/// The method to call
fn def(&self) -> RelationDef;
Expand Down
2 changes: 1 addition & 1 deletion src/query/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use sea_query::IntoColumnRef;
// LINT: when the column does not appear in tables selected from
// LINT: when there is a group by clause, but some columns don't have aggregate functions
// LINT: when the join table or column does not exists
/// Constraints for any type that needs to perform select statements on a Model
/// Abstract API for performing queries
pub trait QuerySelect: Sized {
#[allow(missing_docs)]
type QueryStatement;
Expand Down

0 comments on commit edf9607

Please sign in to comment.