pub struct PostParams {
pub apiversion: Option<u64>,
pub force: Option<bool>,
pub links: HashMap<u32, String>,
pub new_node_ip: Option<IpAddr>,
pub nodeid: Option<u64>,
pub votes: Option<u64>,
pub additional_properties: HashMap<String, Value>,
}
Fields§
§apiversion: Option<u64>
The JOIN_API_VERSION of the new node.
force: Option<bool>
Do not throw error if node already exists.
links: HashMap<u32, String>
Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)
new_node_ip: Option<IpAddr>
IP Address of node to add. Used as fallback if no links are given.
nodeid: Option<u64>
Node id for this node.
votes: Option<u64>
Number of votes for this node
additional_properties: HashMap<String, Value>
Trait Implementations§
Source§impl Clone for PostParams
impl Clone for PostParams
Source§fn clone(&self) -> PostParams
fn clone(&self) -> PostParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PostParams
impl Debug for PostParams
Source§impl Default for PostParams
impl Default for PostParams
Source§fn default() -> PostParams
fn default() -> PostParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostParams
impl<'de> Deserialize<'de> for PostParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PostParams
impl Serialize for PostParams
Auto Trait Implementations§
impl Freeze for PostParams
impl RefUnwindSafe for PostParams
impl Send for PostParams
impl Sync for PostParams
impl Unpin for PostParams
impl UnwindSafe for PostParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more