pub struct MutedUser { /* private fields */ }Expand description
Represents the user ID and timestamp of a muted user.
Modified from openapi-generator-cli output:
$ openapi-generator-cli generate -g rust -i ./zerver/openapi/zulip.yaml -o zulip-openapi --skip-validate-spec/*
* Zulip REST API
*
* Powerful open source group chat
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/See zerver/openapi/zulip.yaml for the original OpenAPI configuration.
Configuration slightly modified to work with the Rust generator of openapi-generator-cli.
Implementations§
Source§impl MutedUser
impl MutedUser
Sourcepub fn with_id(self, val: u64) -> Self
pub fn with_id(self, val: u64) -> Self
Builder function that sets the MutedUser id.
The ID of the muted user.
Sourcepub const fn timestamp(&self) -> Option<u64>
pub const fn timestamp(&self) -> Option<u64>
Gets the MutedUser timestamp.
An integer UNIX timestamp representing when the user was muted.
Sourcepub fn set_timestamp(&mut self, val: u64)
pub fn set_timestamp(&mut self, val: u64)
Sets the MutedUser timestamp.
An integer UNIX timestamp representing when the user was muted.
Sourcepub fn unset_timestamp(&mut self) -> Option<u64>
pub fn unset_timestamp(&mut self) -> Option<u64>
Unsets the MutedUser timestamp.
An integer UNIX timestamp representing when the user was muted.
Sourcepub fn with_timestamp(self, val: u64) -> Self
pub fn with_timestamp(self, val: u64) -> Self
Builder function that sets the MutedUser timestamp.
An integer UNIX timestamp representing when the user was muted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MutedUser
impl<'de> Deserialize<'de> for MutedUser
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 StructuralPartialEq for MutedUser
Auto Trait Implementations§
impl Freeze for MutedUser
impl RefUnwindSafe for MutedUser
impl Send for MutedUser
impl Sync for MutedUser
impl Unpin for MutedUser
impl UnsafeUnpin for MutedUser
impl UnwindSafe for MutedUser
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