Trait rawr::traits::Visible
[−]
[src]
pub trait Visible { fn hidden(&self) -> bool; fn hide(&mut self) -> Result<(), APIError>; fn show(&mut self) -> Result<(), APIError>; fn toggle_hidden(&mut self) -> Result<(), APIError> { ... } }
An object that can be shown/hidden in listings.
Required Methods
fn hidden(&self) -> bool
Gets the current visibility state of the ooject.
fn hide(&mut self) -> Result<(), APIError>
Hides the object, so it is not shown in listings. May be useful so that bots do not view the same links multiple times.
fn show(&mut self) -> Result<(), APIError>
Shows the object again, so it is visible in listings.
Provided Methods
fn toggle_hidden(&mut self) -> Result<(), APIError>
Hides the object if visible, and shows it if hidden.
Implementors
impl<'a> Visible for Submission<'a>