pub struct OpenMeshStreamResponse {
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 OpenMeshStreamResponse
impl OpenMeshStreamResponse
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 OpenMeshStreamResponse
impl Clone for OpenMeshStreamResponse
Source§fn clone(&self) -> OpenMeshStreamResponse
fn clone(&self) -> OpenMeshStreamResponse
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 OpenMeshStreamResponse
impl Debug for OpenMeshStreamResponse
Source§impl Default for OpenMeshStreamResponse
impl Default for OpenMeshStreamResponse
Source§impl<'de> Deserialize<'de> for OpenMeshStreamResponse
impl<'de> Deserialize<'de> for OpenMeshStreamResponse
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 OpenMeshStreamResponse
Source§impl Hash for OpenMeshStreamResponse
impl Hash for OpenMeshStreamResponse
Source§impl Message for OpenMeshStreamResponse
impl Message for OpenMeshStreamResponse
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 OpenMeshStreamResponse
impl PartialEq for OpenMeshStreamResponse
Source§impl Serialize for OpenMeshStreamResponse
impl Serialize for OpenMeshStreamResponse
impl StructuralPartialEq for OpenMeshStreamResponse
Auto Trait Implementations§
impl Freeze for OpenMeshStreamResponse
impl RefUnwindSafe for OpenMeshStreamResponse
impl Send for OpenMeshStreamResponse
impl Sync for OpenMeshStreamResponse
impl Unpin for OpenMeshStreamResponse
impl UnsafeUnpin for OpenMeshStreamResponse
impl UnwindSafe for OpenMeshStreamResponse
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