[][src]Struct misskey_api::endpoint::messaging::messages::create::Request

pub struct Request {
    pub text: Option<String>,
    pub user_id: Option<Id<User>>,
    pub group_id: Option<Id<UserGroup>>,
    pub file_id: Option<Id<DriveFile>>,
}

Fields

text: Option<String>user_id: Option<Id<User>>group_id: Option<Id<UserGroup>>file_id: Option<Id<DriveFile>>

Implementations

impl Request[src]

pub fn builder() -> RequestBuilder<((), (), (), ())>[src]

Create a builder for building Request. On the builder, call .text(...)(optional), .user_id(...)(optional), .group_id(...)(optional), .file_id(...)(optional) to set the values of the fields (they accept Into values). Finally, call .build() to create the instance of Request.

Trait Implementations

impl Clone for Request[src]

impl Debug for Request[src]

impl Request for Request[src]

type Response = MessagingMessage

Response type of this request.

impl Serialize for Request[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.