Struct hcloud::models::created_from::CreatedFrom
source · pub struct CreatedFrom {
pub id: i64,
pub name: String,
}
Expand description
CreatedFrom : Information about the Server the Image was created from
Fields§
§id: i64
ID of the Server the Image was created from
name: String
Server name at the time the Image was created
Implementations§
source§impl CreatedFrom
impl CreatedFrom
sourcepub fn new(id: i64, name: String) -> CreatedFrom
pub fn new(id: i64, name: String) -> CreatedFrom
Information about the Server the Image was created from
Trait Implementations§
source§impl Clone for CreatedFrom
impl Clone for CreatedFrom
source§fn clone(&self) -> CreatedFrom
fn clone(&self) -> CreatedFrom
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 CreatedFrom
impl Debug for CreatedFrom
source§impl Default for CreatedFrom
impl Default for CreatedFrom
source§fn default() -> CreatedFrom
fn default() -> CreatedFrom
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatedFrom
impl<'de> Deserialize<'de> for CreatedFrom
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 CreatedFrom
impl PartialEq for CreatedFrom
source§fn eq(&self, other: &CreatedFrom) -> bool
fn eq(&self, other: &CreatedFrom) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CreatedFrom
impl Serialize for CreatedFrom
impl StructuralPartialEq for CreatedFrom
Auto Trait Implementations§
impl RefUnwindSafe for CreatedFrom
impl Send for CreatedFrom
impl Sync for CreatedFrom
impl Unpin for CreatedFrom
impl UnwindSafe for CreatedFrom
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