pub struct UpdateTopicReqPayload {
pub name: String,
pub topic_id: Uuid,
}Fields§
§name: StringThe new name of the topic. A name is not generated from this field, it is used as-is.
topic_id: UuidThe id of the topic to target.
Implementations§
Source§impl UpdateTopicReqPayload
impl UpdateTopicReqPayload
pub fn new(name: String, topic_id: Uuid) -> UpdateTopicReqPayload
Trait Implementations§
Source§impl Clone for UpdateTopicReqPayload
impl Clone for UpdateTopicReqPayload
Source§fn clone(&self) -> UpdateTopicReqPayload
fn clone(&self) -> UpdateTopicReqPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 UpdateTopicReqPayload
impl Debug for UpdateTopicReqPayload
Source§impl Default for UpdateTopicReqPayload
impl Default for UpdateTopicReqPayload
Source§fn default() -> UpdateTopicReqPayload
fn default() -> UpdateTopicReqPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateTopicReqPayload
impl<'de> Deserialize<'de> for UpdateTopicReqPayload
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 PartialEq for UpdateTopicReqPayload
impl PartialEq for UpdateTopicReqPayload
Source§impl Serialize for UpdateTopicReqPayload
impl Serialize for UpdateTopicReqPayload
impl StructuralPartialEq for UpdateTopicReqPayload
Auto Trait Implementations§
impl Freeze for UpdateTopicReqPayload
impl RefUnwindSafe for UpdateTopicReqPayload
impl Send for UpdateTopicReqPayload
impl Sync for UpdateTopicReqPayload
impl Unpin for UpdateTopicReqPayload
impl UnwindSafe for UpdateTopicReqPayload
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