pub trait ChannelStatusUpdate {
// Required method
fn set_status(&mut self, new_status: ChannelStatus);
}
Expand description
Extension trait for updating ChannelStatus inside channel::ActiveModel.
This is needed as status
maps to two model members.
Required Methods§
Sourcefn set_status(&mut self, new_status: ChannelStatus)
fn set_status(&mut self, new_status: ChannelStatus)
Update ChannelStatus of this active model.