pub struct SearchResponse {
pub max_age: String,
pub date: Option<String>,
pub location: String,
pub server: String,
pub secure_location: Option<String>,
pub target: SearchTarget,
pub unique_service_name: UniqueServiceName,
pub boot_id: Option<i32>,
pub config_id: Option<i32>,
pub search_port: Option<u16>,
/* private fields */
}
Fields§
§max_age: String
Specifies how long this response is valid
date: Option<String>
When the responce was generated
location: String
The URL for the UPNP description of the root device
server: String
A server string like “unix/5.1 UPnP/2.0 MyProduct/1.0”
secure_location: Option<String>
If set, a base url with https:// that can be used instead of location
target: SearchTarget
§unique_service_name: UniqueServiceName
A unique service name for this particular service
boot_id: Option<i32>
presents the boot instance of the device expressed according to a monotonically increasing value.
config_id: Option<i32>
A number identifying this particular configuration. if configuration changes, this should change as well
search_port: Option<u16>
A port other than 1900 than can be used for queries
Trait Implementations§
Source§impl Debug for SearchResponse
impl Debug for SearchResponse
Source§impl FromHeaders for SearchResponse
impl FromHeaders for SearchResponse
Source§impl PartialEq for SearchResponse
impl PartialEq for SearchResponse
Source§impl ToHeaders for SearchResponse
impl ToHeaders for SearchResponse
fn to_headers(&self) -> Headers
impl StructuralPartialEq for SearchResponse
Auto Trait Implementations§
impl Freeze for SearchResponse
impl RefUnwindSafe for SearchResponse
impl Send for SearchResponse
impl Sync for SearchResponse
impl Unpin for SearchResponse
impl UnwindSafe for SearchResponse
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