pub struct PveLocationConfig {
pub latitude: f64,
pub longitude: f64,
pub name: Option<String>,
}Fields§
§latitude: f64The latitude of the nodes location in degrees.
longitude: f64The longitude of the nodes location in degrees.
name: Option<String>The name of the location of this node
Implementations§
Source§impl PveLocationConfig
impl PveLocationConfig
pub fn new(latitude: f64, longitude: f64) -> PveLocationConfig
Source§impl PveLocationConfig
impl PveLocationConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveLocationConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveLocationConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveLocationConfig
impl Clone for PveLocationConfig
Source§fn clone(&self) -> PveLocationConfig
fn clone(&self) -> PveLocationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PveLocationConfig
impl Debug for PveLocationConfig
Source§impl Default for PveLocationConfig
impl Default for PveLocationConfig
Source§fn default() -> PveLocationConfig
fn default() -> PveLocationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PveLocationConfig
impl<'de> Deserialize<'de> for PveLocationConfig
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 PartialEq for PveLocationConfig
impl PartialEq for PveLocationConfig
Source§fn eq(&self, other: &PveLocationConfig) -> bool
fn eq(&self, other: &PveLocationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PveLocationConfig
impl Serialize for PveLocationConfig
impl StructuralPartialEq for PveLocationConfig
Auto Trait Implementations§
impl Freeze for PveLocationConfig
impl RefUnwindSafe for PveLocationConfig
impl Send for PveLocationConfig
impl Sync for PveLocationConfig
impl Unpin for PveLocationConfig
impl UnsafeUnpin for PveLocationConfig
impl UnwindSafe for PveLocationConfig
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