apicize_lib 0.40.0

Library supporting Apicize request dispatch, testing and serialization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Trait to describe oneself
pub trait Disable {
    /// Return ID of self
    fn get_id(&self) -> &str;

    /// Return name of self
    fn get_name(&self) -> &str;

    /// Return a title to display in a list
    fn get_title(&self) -> String;
}

pub trait CloneIdentifiable {
    /// Create a copy with a new identifier
    fn clone_as_new(&self, new_name: String) -> Self;
}