pub fn new_as_create(name: &str) -> Self {
        Payload {
            name: String::from(name),
            action: Action::CREATE,
        }
    }
/// Creates a Payload initialized with Action::CREATE and the specified
/// name.
Creates a Payload initialized with Action::CREATE and the specified
name.
Creates a Payload initialized with Action :: CREATE and the specified name .
pub fn new_as_create(name: &str) -> Self {
        Payload {
            name: String::from(name),
            action: Action::CREATE,
        }
    }
pub fn new_as_create ( name : & str ) -> Self { Payload { name : String :: from ( name ) , action : Action :: CREATE , } }
Creates a Payload initialized with Action::CREATE and the specified
name.
Creates a Payload initialized with Action :: CREATE and the specified name .
name
&str
name
&str