pub struct ThingShadow<'a> {
pub thing_name: &'a str,
pub shadow_name: Option<&'a str>,
pub shadow_op: Topic,
}
Expand description
A shadow topic string takes one of the two forms, in the case of an unnamed (“Classic”) shadow. Or, in the case of a named shadow The shadow_name part is None when unnamed shadow.
Fields§
§thing_name: &'a str
§shadow_name: Option<&'a str>
§shadow_op: Topic
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ThingShadow<'a>
impl<'a> RefUnwindSafe for ThingShadow<'a>
impl<'a> Send for ThingShadow<'a>
impl<'a> Sync for ThingShadow<'a>
impl<'a> Unpin for ThingShadow<'a>
impl<'a> UnwindSafe for ThingShadow<'a>
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