pub struct PushClipRequest {
pub content: String,
pub content_type: String,
pub label: String,
pub source: String,
pub byte_size: i64,
pub encrypted: bool,
pub target_device_id: Option<String>,
pub media_path: Option<String>,
pub client_created_at: Option<String>,
pub idempotency_key: Option<String>,
}Fields§
§content: String§content_type: String§label: String§source: String§byte_size: i64field 5 (ttl) removed — do not reuse
encrypted: bool§target_device_id: Option<String>§media_path: Option<String>§client_created_at: Option<String>RFC3339; relay clamps to [now-90d, now]
idempotency_key: Option<String>(user_id, key) unique within 24h
Implementations§
Source§impl PushClipRequest
impl PushClipRequest
Sourcepub fn target_device_id(&self) -> &str
pub fn target_device_id(&self) -> &str
Returns the value of target_device_id, or the default value if target_device_id is unset.
Sourcepub fn media_path(&self) -> &str
pub fn media_path(&self) -> &str
Returns the value of media_path, or the default value if media_path is unset.
Sourcepub fn client_created_at(&self) -> &str
pub fn client_created_at(&self) -> &str
Returns the value of client_created_at, or the default value if client_created_at is unset.
Sourcepub fn idempotency_key(&self) -> &str
pub fn idempotency_key(&self) -> &str
Returns the value of idempotency_key, or the default value if idempotency_key is unset.
Trait Implementations§
Source§impl Clone for PushClipRequest
impl Clone for PushClipRequest
Source§fn clone(&self) -> PushClipRequest
fn clone(&self) -> PushClipRequest
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 PushClipRequest
impl Debug for PushClipRequest
Source§impl Default for PushClipRequest
impl Default for PushClipRequest
Source§impl<'de> Deserialize<'de> for PushClipRequestwhere
PushClipRequest: Default,
impl<'de> Deserialize<'de> for PushClipRequestwhere
PushClipRequest: Default,
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
Source§impl Message for PushClipRequest
impl Message for PushClipRequest
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 PushClipRequest
impl PartialEq for PushClipRequest
Source§fn eq(&self, other: &PushClipRequest) -> bool
fn eq(&self, other: &PushClipRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PushClipRequest
impl Serialize for PushClipRequest
impl StructuralPartialEq for PushClipRequest
Auto Trait Implementations§
impl Freeze for PushClipRequest
impl RefUnwindSafe for PushClipRequest
impl Send for PushClipRequest
impl Sync for PushClipRequest
impl Unpin for PushClipRequest
impl UnsafeUnpin for PushClipRequest
impl UnwindSafe for PushClipRequest
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