pub struct PublicSessionResponse {Show 14 fields
pub building_display_name: Option<Value>,
pub call_target_display_name: Option<Value>,
pub call_target_location_line: Option<String>,
pub callee_peer_id: String,
pub callees_notified: Option<bool>,
pub caller_peer_id: String,
pub expires_at: Option<String>,
pub has_lights: Option<bool>,
pub mode: Option<String>,
pub peerjs: PeerJsConfig,
pub portal_camera_device_ids: Option<Vec<String>>,
pub role: PublicSessionRole,
pub session_id: String,
pub state: String,
}Expand description
PublicSessionResponse
JSON schema
{
"type": "object",
"required": [
"callee_peer_id",
"caller_peer_id",
"peerjs",
"role",
"session_id",
"state"
],
"properties": {
"building_display_name": {
"description": "Integration / building name (localized JSON)."
},
"call_target_display_name": {
"description": "Localized apartment / unit title for call UI (caller/callee)."
},
"call_target_location_line": {
"description": "Single line for apartment + floor (e.g. \"3 · Floor 2\").",
"type": [
"string",
"null"
]
},
"callee_peer_id": {
"type": "string"
},
"callees_notified": {
"description": "Whether at least one callee received a push notification. Caller uses this to skip peer-unavailable retries when false.",
"type": [
"boolean",
"null"
]
},
"caller_peer_id": {
"type": "string"
},
"expires_at": {
"type": [
"string",
"null"
]
},
"has_lights": {
"description": "Whether the portal has light devices configured. Callee-only.",
"type": [
"boolean",
"null"
]
},
"mode": {
"description": "Call mode: \"voice\" or \"video\". Video on by default when mode is \"video\".",
"type": [
"string",
"null"
]
},
"peerjs": {
"$ref": "#/components/schemas/PeerJsConfig"
},
"portal_camera_device_ids": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"role": {
"$ref": "#/components/schemas/PublicSessionRole"
},
"session_id": {
"type": "string"
},
"state": {
"type": "string"
}
}
}Fields§
§building_display_name: Option<Value>Integration / building name (localized JSON).
call_target_display_name: Option<Value>Localized apartment / unit title for call UI (caller/callee).
call_target_location_line: Option<String>Single line for apartment + floor (e.g. “3 · Floor 2”).
callee_peer_id: String§callees_notified: Option<bool>Whether at least one callee received a push notification. Caller uses this to skip peer-unavailable retries when false.
caller_peer_id: String§expires_at: Option<String>§has_lights: Option<bool>Whether the portal has light devices configured. Callee-only.
mode: Option<String>Call mode: “voice” or “video”. Video on by default when mode is “video”.
peerjs: PeerJsConfig§portal_camera_device_ids: Option<Vec<String>>§role: PublicSessionRole§session_id: String§state: StringTrait Implementations§
Source§impl Clone for PublicSessionResponse
impl Clone for PublicSessionResponse
Source§fn clone(&self) -> PublicSessionResponse
fn clone(&self) -> PublicSessionResponse
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 moreSource§impl Debug for PublicSessionResponse
impl Debug for PublicSessionResponse
Source§impl<'de> Deserialize<'de> for PublicSessionResponse
impl<'de> Deserialize<'de> for PublicSessionResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PublicSessionResponse
impl RefUnwindSafe for PublicSessionResponse
impl Send for PublicSessionResponse
impl Sync for PublicSessionResponse
impl Unpin for PublicSessionResponse
impl UnsafeUnpin for PublicSessionResponse
impl UnwindSafe for PublicSessionResponse
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