pub struct OpenStreamResponse {
pub stream_id: String,
pub accepted: bool,
pub transport_kind: i32,
pub endpoint: Option<String>,
pub token: Option<String>,
pub expires_at_unix_ms: Option<u64>,
pub message: Option<String>,
}Fields§
§stream_id: String§accepted: bool§transport_kind: i32§endpoint: Option<String>§token: Option<String>§expires_at_unix_ms: Option<u64>§message: Option<String>Implementations§
Source§impl OpenStreamResponse
impl OpenStreamResponse
Sourcepub fn transport_kind(&self) -> StreamTransportKind
pub fn transport_kind(&self) -> StreamTransportKind
Returns the enum value of transport_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_transport_kind(&mut self, value: StreamTransportKind)
pub fn set_transport_kind(&mut self, value: StreamTransportKind)
Sets transport_kind to the provided enum value.
Sourcepub fn endpoint(&self) -> &str
pub fn endpoint(&self) -> &str
Returns the value of endpoint, or the default value if endpoint is unset.
Sourcepub fn token(&self) -> &str
pub fn token(&self) -> &str
Returns the value of token, or the default value if token is unset.
Sourcepub fn expires_at_unix_ms(&self) -> u64
pub fn expires_at_unix_ms(&self) -> u64
Returns the value of expires_at_unix_ms, or the default value if expires_at_unix_ms is unset.
Trait Implementations§
Source§impl Clone for OpenStreamResponse
impl Clone for OpenStreamResponse
Source§fn clone(&self) -> OpenStreamResponse
fn clone(&self) -> OpenStreamResponse
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 OpenStreamResponse
impl Debug for OpenStreamResponse
Source§impl Default for OpenStreamResponse
impl Default for OpenStreamResponse
Source§impl<'de> Deserialize<'de> for OpenStreamResponse
impl<'de> Deserialize<'de> for OpenStreamResponse
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
impl Eq for OpenStreamResponse
Source§impl Hash for OpenStreamResponse
impl Hash for OpenStreamResponse
Source§impl Message for OpenStreamResponse
impl Message for OpenStreamResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for OpenStreamResponse
impl PartialEq for OpenStreamResponse
Source§impl Serialize for OpenStreamResponse
impl Serialize for OpenStreamResponse
impl StructuralPartialEq for OpenStreamResponse
Auto Trait Implementations§
impl Freeze for OpenStreamResponse
impl RefUnwindSafe for OpenStreamResponse
impl Send for OpenStreamResponse
impl Sync for OpenStreamResponse
impl Unpin for OpenStreamResponse
impl UnsafeUnpin for OpenStreamResponse
impl UnwindSafe for OpenStreamResponse
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