teenjuna
teenjuna
Not sure if it's possible. It should look something like this: ```rust prae::define! { pub NonEmptyVec: Vec; ensure |v| !v.is_empty(); } ```
Example for structs: ```rust define! { pub User: struct { pub name: String, } ensure |u| !u.name.is_empty() } ``` Example for enums: ```rust define! { pub Error: enum { WithMessage(String),...
### Version v0.3.1 ### Description After executing `cargo install ouch`, I get the following output: ``` ❯ cargo install ouch Updating crates.io index Downloaded ouch v0.3.1 Downloaded 1 crate (27.6...
I think it's related to #174. Here is a demo for `minimal-winit`: https://user-images.githubusercontent.com/53595243/134104056-caa2d953-0302-4e55-a9d6-e40a09cc2c36.mov
As an example: when you try to update a record without relations, you provide it's id and a set of updates. If the result contains `None`, that means that the...
When I try to use `set` method, I get a runtime error. My model `product` has three relational fields: `categories`, `subproducts` and `superproducts`. My code looks something like this: ```rust...
Hi! I'm trying to use the heroicons pack, but I'm unable to make the stroke-width of the icon smaller (both with style attribute and with tailwind class). Making it bigger...
The lesson provides an example dataset of baseball players. The lesson and the associated notebook use word "height" instead of "weight" (and vice versa).
Partially solves #142. In the mentioned issue, I say that I want to put table in the figure. However, after looking into codebase I understand that it's not trivial to...