|
@@ -284,7 +284,7 @@ fn do_make_index(tokens: TokenStream, microrm_ref: proc_macro2::TokenStream) ->
|
|
|
///
|
|
|
/// Suppose the following `Entity` definition is used:
|
|
|
///
|
|
|
-/// ```rust
|
|
|
+/// ```ignore
|
|
|
/// #[derive(Entity,Serialize,Deserialize)]
|
|
|
/// struct SystemUser {
|
|
|
/// username: String,
|
|
@@ -293,12 +293,12 @@ fn do_make_index(tokens: TokenStream, microrm_ref: proc_macro2::TokenStream) ->
|
|
|
/// ```
|
|
|
///
|
|
|
/// We can now use `make_index!` to define an index on the username field:
|
|
|
-/// ```rust
|
|
|
+/// ```ignore
|
|
|
/// make_index!(SystemUsernameIndex, SystemUserColumns::Username)
|
|
|
/// ```
|
|
|
///
|
|
|
/// This index can be made unique by adding a `!` prior to the type name, as:
|
|
|
-/// ```rust
|
|
|
+/// ```ignore
|
|
|
/// make_index!(!SystemUsernameUniqueIndex, SystemUserColumns::Username)
|
|
|
/// ```
|
|
|
#[proc_macro]
|