pub struct LayerResource {
pub id: String,
pub type: Type,
}Fields§
§id: String§type: TypeImplementations§
Source§impl LayerResource
impl LayerResource
pub fn new(id: String, type: Type) -> LayerResource
Trait Implementations§
Source§impl Clone for LayerResource
impl Clone for LayerResource
Source§fn clone(&self) -> LayerResource
fn clone(&self) -> LayerResource
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 LayerResource
impl Debug for LayerResource
Source§impl Default for LayerResource
impl Default for LayerResource
Source§fn default() -> LayerResource
fn default() -> LayerResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayerResource
impl<'de> Deserialize<'de> for LayerResource
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 LayerResource
impl PartialEq for LayerResource
Source§fn eq(&self, other: &LayerResource) -> bool
fn eq(&self, other: &LayerResource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LayerResource
impl Serialize for LayerResource
impl StructuralPartialEq for LayerResource
Auto Trait Implementations§
impl Freeze for LayerResource
impl RefUnwindSafe for LayerResource
impl Send for LayerResource
impl Sync for LayerResource
impl Unpin for LayerResource
impl UnsafeUnpin for LayerResource
impl UnwindSafe for LayerResource
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