Function diesel::pg::expression::dsl::network

source ·
pub fn network<T: InetOrCidr + SingleValue, addr>(
    addr: addr
) -> network<T, addr>
where addr: AsExpression<T>,
Available on crate feature postgres_backend only.
Expand description

Returns the network part of the address, zeroing out whatever is to the right of the netmask. (This is equivalent to casting the value to cidr.)