|
@@ -13,7 +13,7 @@ mod index;
|
|
|
/// - Defines and derives `EntityPart` for each field in the source structure,
|
|
|
/// - Defines an `EntityID` type,
|
|
|
/// - Derives a `std::fmt::Debug` implementation for the structure that handles some of the
|
|
|
-/// `microrm::schema` types nicely.
|
|
|
+/// `microrm::schema` types nicely.
|
|
|
///
|
|
|
/// The prerequisites for this macro are:
|
|
|
/// - Must be applied on a struct with named fields,
|
|
@@ -21,16 +21,16 @@ mod index;
|
|
|
///
|
|
|
/// Three attributes, applied to fields, modify the behaviour of the generation as follows:
|
|
|
/// - The `unique` attribute causes the resulting sqlite table to attach a unique constraint for
|
|
|
-/// the given column. Note that this is a restriction that is applied per-column, not over all
|
|
|
-/// columns tagged with `#[unique]`.
|
|
|
+/// the given column. Note that this is a restriction that is applied per-column, not over all
|
|
|
+/// columns tagged with `#[unique]`.
|
|
|
/// - The `elide` attribute removes the datum field from several end-user-visible iterations, such
|
|
|
-/// as the `Debug` impl. Useful for hiding fields that hold secret information that shouldn't be
|
|
|
-/// visible in log files.
|
|
|
+/// as the `Debug` impl. Useful for hiding fields that hold secret information that shouldn't be
|
|
|
+/// visible in log files.
|
|
|
/// - The `key` attribute adds a field to the search key defined for this entity, for smoother
|
|
|
-/// access. This attribute can be applied to multiple fields, and the key-uniqueness constraint is
|
|
|
-/// applied across the tuple of all columns with the attribute. Note that this is not _quite_ the
|
|
|
-/// primary key for the table, as internally the integral ID is used as the primary key; it can be
|
|
|
-/// thought of as the 'secondary key' for the table.
|
|
|
+/// access. This attribute can be applied to multiple fields, and the key-uniqueness constraint is
|
|
|
+/// applied across the tuple of all columns with the attribute. Note that this is not _quite_ the
|
|
|
+/// primary key for the table, as internally the integral ID is used as the primary key; it can be
|
|
|
+/// thought of as the 'secondary key' for the table.
|
|
|
///
|
|
|
/// For example:
|
|
|
///
|