pub struct ProviderState {
pub format: ProviderStateFormat,
pub data: Value,
}Expand description
Opaque state needed to replay provider-specific content.
The data value must be passed back to the same provider unchanged. It can
contain a signature, encrypted content, an item id, or other fields whose
meaning is deliberately unknown to the SDK.
Fields§
§format: ProviderStateFormatThe wire format this state belongs to.
data: ValueThe opaque payload. Its meaning is deliberately unknown to the SDK.
Implementations§
Source§impl ProviderState
impl ProviderState
Sourcepub fn new(format: ProviderStateFormat, data: Value) -> Self
pub fn new(format: ProviderStateFormat, data: Value) -> Self
Creates provider state from a format and an opaque payload.
Trait Implementations§
Source§impl Clone for ProviderState
impl Clone for ProviderState
Source§impl Debug for ProviderState
impl Debug for ProviderState
Source§impl<'de> Deserialize<'de> for ProviderState
impl<'de> Deserialize<'de> for ProviderState
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 ProviderState
impl PartialEq for ProviderState
Source§impl Serialize for ProviderState
impl Serialize for ProviderState
impl StructuralPartialEq for ProviderState
Auto Trait Implementations§
impl Freeze for ProviderState
impl RefUnwindSafe for ProviderState
impl Send for ProviderState
impl Sync for ProviderState
impl Unpin for ProviderState
impl UnsafeUnpin for ProviderState
impl UnwindSafe for ProviderState
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