Module toql_core::join_macro
source · [−]Expand description
Convenience macros to work with the Join type.
Use join!
, if you expect a Join to contain an entity.
The macro will fail with a ToqlError::NoneError, if the entity is missing.
Example
With a join like address: Join<Address>
in an object user
you can write
ⓘ
use toql_core::join;
let address : &Address = join!(user.address).expect("Entity is missing.");
Likewise for Option<Join<Address>>
use rval_join!
.