hopr_db_entity::conversions::channels

Trait ChannelStatusUpdate

Source
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§

Source

fn set_status(&mut self, new_status: ChannelStatus)

Update ChannelStatus of this active model.

Implementors§