[−][src]Struct filmreel::cut::Register
Holds Cut Variables and their corresonding values stored in a series of key/value pairs.
Methods
impl Register
[src]
pub fn new(json_string: &str) -> Result<Register, FrError>
[src]
Creates a new Register object running post deserialization validations
pub fn to_string_pretty(&self) -> String
[src]
Pretty json formatting for Frame serialization
pub fn get_key_value(&self, key: &str) -> Option<(&String, &String)>
[src]
Gets a reference to the string slice value for the given var name.
pub fn get(&self, key: &str) -> Option<&String>
[src]
Gets a reference to the string slice value for the given var name.
pub fn iter(&self) -> Iter<String, String>
[src]
An iterator visiting all Cut Variables in arbitrary order.
pub fn contains_key(&self, key: &str) -> bool
[src]
Returns a boolean indicating whether Register.vars contains a given key.
pub fn read_match(&self, json_string: &str) -> Result<Vec<Match>, FrError>
[src]
Returns a vector of Match enums enums found in the string provided for use in cut operations.
pub fn read_operation(
&self,
mat: Match,
json_string: &mut String
) -> Result<(), FrError>
[src]
&self,
mat: Match,
json_string: &mut String
) -> Result<(), FrError>
Replaces a byte range in a given string with the range given in the ::Match provided.
pub fn write_match(
var_name: &str,
frame_str: &str,
payload_str: &String
) -> Result<Option<String>, FrError>
[src]
var_name: &str,
frame_str: &str,
payload_str: &String
) -> Result<Option<String>, FrError>
Takes a response payload value writes to the Cut Register
pub fn write_operation(
&mut self,
key: &str,
val: String
) -> Result<Option<String>, FrError>
[src]
&mut self,
key: &str,
val: String
) -> Result<Option<String>, FrError>
Trait Implementations
impl Clone for Register
[src]
impl Debug for Register
[src]
impl Default for Register
[src]
impl<'de> Deserialize<'de> for Register
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Register> for Register
[src]
impl Serialize for Register
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Register
[src]
Auto Trait Implementations
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnwindSafe for Register
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: Deserialize<'de>,
[src]
T: 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>,