pub struct Carbon { /* private fields */ }Expand description
A basic resource.
This struct represents the basic resource $basic.
Implementations§
Source§impl Carbon
impl Carbon
Sourcepub fn to_type(&self) -> ResourceType
pub fn to_type(&self) -> ResourceType
Converts this resource to a ResourceType.
Sourcepub fn to_generic(self) -> GenericResource
pub fn to_generic(self) -> GenericResource
Converts this resource to a GenericResource.
Sourcepub fn to_basic(self) -> BasicResource
pub fn to_basic(self) -> BasicResource
Converts this resource to a BasicResource.
Sourcepub fn to_basic_type(&self) -> BasicResourceType
pub fn to_basic_type(&self) -> BasicResourceType
Returns the BasicResourceType of this resource.
Trait Implementations§
Source§impl Resource for Carbon
impl Resource for Carbon
Source§fn to_static_str(&self) -> &'static str
fn to_static_str(&self) -> &'static str
Returns a static string representation of the resource.
impl Eq for Carbon
impl StructuralPartialEq for Carbon
Auto Trait Implementations§
impl Freeze for Carbon
impl RefUnwindSafe for Carbon
impl Send for Carbon
impl Sync for Carbon
impl Unpin for Carbon
impl UnwindSafe for Carbon
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