[−][src]Struct darkroom::Frame
Represents the entire deserialized frame file.
Fields
protocol: Protocol
cut: InstructionSet<'a>
response: Response
Implementations
impl<'a> Frame<'a>
[src]
pub fn new(json_string: &str) -> Result<Frame, FrError>
[src]
Creates a new Frame object running post deserialization validations
pub fn to_string_pretty(&self) -> String
[src]
Pretty json formatting for Frame serialization
pub fn to_value(&self) -> Value
[src]
Serializes the Frame struct to a serde_json::Value
pub fn get_request(&self) -> Request
[src]
Serialized payload
pub fn get_request_uri(&self) -> Result<String, FrError>
[src]
Serialized payload
pub fn get_response_value(&self) -> Result<Value, Error>
[src]
Returns a Value object from the response body, used for response comparisons and writing to the cut register
pub fn hydrate(&mut self, reg: &Register, hide: bool) -> Result<(), FrError>
[src]
Traverses Frame properties where Read Operations are permitted and performs Register.read_operation on Strings with Cut Variables
pub fn hydrate_val(
set: &InstructionSet,
val: &mut Value,
reg: &Register,
hide: bool
) -> Result<(), FrError>
[src]
set: &InstructionSet,
val: &mut Value,
reg: &Register,
hide: bool
) -> Result<(), FrError>
Traverses a given serde::Value enum attempting to modify found Strings for the moment this method also works as a Frame.init() check, emitting FrameParseErrors
[src]
Pretty formatting for Frame serialization, any variables starting with an underscore as it's value hidden
Trait Implementations
impl<'a> Clone for Frame<'a>
[src]
impl<'a> Debug for Frame<'a>
[src]
impl<'de, 'a> Deserialize<'de> for Frame<'a> where
'de: 'a,
[src]
'de: 'a,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Frame<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Frame<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<'a> PartialEq<Frame<'a>> for Frame<'a>
[src]
impl<'a> Serialize for Frame<'a>
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<'a> StructuralPartialEq for Frame<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,