Struct bitcoinrpc_util::RPCArg
source · pub struct RPCArg { /* private fields */ }Expand description
Implementations§
source§impl RPCArg
impl RPCArg
pub fn new( name: String, ty: Type, fallback: Fallback, description: String, oneline_description: Option<&str>, type_str: Vec<String>, hidden: Option<bool> ) -> Self
pub fn new_with_inner( name: String, ty: Type, fallback: Fallback, description: String, inner: Vec<RPCArg>, oneline_description: Option<&str>, type_str: Vec<String> ) -> Self
source§impl RPCArg
impl RPCArg
sourcepub fn get_first_name(&self) -> String
pub fn get_first_name(&self) -> String
| Return the first of all aliases |
pub fn is_optional(&self) -> bool
Trait Implementations§
source§impl ToDescriptionString for RPCArg
impl ToDescriptionString for RPCArg
source§fn to_description_string(&self) -> String
fn to_description_string(&self) -> String
| Return the description string, including | the argument type and whether the argument | is required. |
Auto Trait Implementations§
impl RefUnwindSafe for RPCArg
impl Send for RPCArg
impl Sync for RPCArg
impl Unpin for RPCArg
impl UnwindSafe for RPCArg
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more