pub enum ResourceState {
Ensure(Ensure),
Full {
ensure: Ensure,
content: Option<Vec<u8>>,
},
}Expand description
Represents the actual, current state of a resource on the target system.
Variants§
Ensure(Ensure)
Represents existence-only state (present/absent).
Full
Represents full state, including metadata and/or actual binary content.
Trait Implementations§
Source§impl Clone for ResourceState
impl Clone for ResourceState
Source§fn clone(&self) -> ResourceState
fn clone(&self) -> ResourceState
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 ResourceState
impl Debug for ResourceState
Source§impl<'de> Deserialize<'de> for ResourceState
impl<'de> Deserialize<'de> for ResourceState
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 ResourceState
impl PartialEq for ResourceState
Source§fn eq(&self, other: &ResourceState) -> bool
fn eq(&self, other: &ResourceState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceState
impl Serialize for ResourceState
impl StructuralPartialEq for ResourceState
Auto Trait Implementations§
impl Freeze for ResourceState
impl RefUnwindSafe for ResourceState
impl Send for ResourceState
impl Sync for ResourceState
impl Unpin for ResourceState
impl UnsafeUnpin for ResourceState
impl UnwindSafe for ResourceState
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