Struct perseus::template::States [−][src]
Expand description
Represents all the different states that can be generated for a single template, allowing amalgamation logic to be run with the knowledge of what did what (rather than blindly working on a vector).
Fields
build_state: Option<String>
Any state generated by the build state strategy.
request_state: Option<String>
Any state generated by the request state strategy.
Implementations
Checks if both request state and build state are defined.
Gets the only defined state if only one is defined. If no states are defined, this will just return None
. If both are defined,
this will return an error.