pub struct HostResponse {
pub host: String,
pub success: bool,
pub steak: Option<HashMap<String, AdmittanceInstructions>>,
pub error: Option<String>,
}Expand description
Response from a single host during broadcast.
Fields§
§host: StringHost URL.
success: boolWhether broadcast succeeded.
steak: Option<HashMap<String, AdmittanceInstructions>>STEAK response (if successful).
error: Option<String>Error message (if failed).
Implementations§
Source§impl HostResponse
impl HostResponse
Sourcepub fn success(
host: String,
steak: HashMap<String, AdmittanceInstructions>,
) -> HostResponse
pub fn success( host: String, steak: HashMap<String, AdmittanceInstructions>, ) -> HostResponse
Create a successful response.
Sourcepub fn failure(host: String, error: String) -> HostResponse
pub fn failure(host: String, error: String) -> HostResponse
Create a failed response.
Trait Implementations§
Source§impl Clone for HostResponse
impl Clone for HostResponse
Source§fn clone(&self) -> HostResponse
fn clone(&self) -> HostResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HostResponse
impl RefUnwindSafe for HostResponse
impl Send for HostResponse
impl Sync for HostResponse
impl Unpin for HostResponse
impl UnsafeUnpin for HostResponse
impl UnwindSafe for HostResponse
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