Skip to main content

set

Function set 

Source
pub fn set<T>(value: impl Into<T>) -> Set<T>
Expand description

A set field: set("Stephen") is Set::Value("Stephen".into()).

Takes impl Into<T> so the ergonomic literals work — set("Stephen") for a String column — while the target type still comes from the Setter field, so set stays as typed as the column it lands in.