pub struct Oxygen { /* private fields */ }Expand description
A basic resource.
This struct represents the basic resource $basic.
Implementations§
Source§impl Oxygen
impl Oxygen
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 Oxygen
impl Resource for Oxygen
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 Oxygen
impl StructuralPartialEq for Oxygen
Auto Trait Implementations§
impl Freeze for Oxygen
impl RefUnwindSafe for Oxygen
impl Send for Oxygen
impl Sync for Oxygen
impl Unpin for Oxygen
impl UnwindSafe for Oxygen
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