[][src]Struct misskey::builder::AntennaUpdateBuilder

pub struct AntennaUpdateBuilder<C> { /* fields omitted */ }

Builder for the update_antenna method.

Implementations

impl<C> AntennaUpdateBuilder<C>[src]

pub fn new(client: C, antenna: Antenna) -> AntennaUpdateBuilder<C>[src]

Creates a builder with the client and the antenna you are going to update.

pub fn as_request(&self) -> &Request[src]

Gets the request object for reuse.

pub fn name(&mut self, name: impl Into<String>) -> &mut AntennaUpdateBuilder<C>[src]

Sets the name of the antenna.

pub fn all(&mut self) -> &mut AntennaUpdateBuilder<C>[src]

Makes the antenna watch for all notes.

pub fn home(&mut self) -> &mut AntennaUpdateBuilder<C>[src]

Makes the antenna watch for notes in the home timeline.

pub fn users(
    &mut self,
    users: impl IntoIterator<Item = impl Into<String>>
) -> &mut AntennaUpdateBuilder<C>
[src]

Makes the antenna watch for notes by the specified users.

pub fn user_list(
    &mut self,
    user_list: impl EntityRef<UserList>
) -> &mut AntennaUpdateBuilder<C>
[src]

Makes the antenna watch for notes by users in the specified user list.

pub fn user_group(
    &mut self,
    user_group: impl EntityRef<UserGroup>
) -> &mut AntennaUpdateBuilder<C>
[src]

Makes the antenna watch for notes by users in the specified user group.

pub fn include(
    &mut self,
    query: impl Into<Query<String>>
) -> &mut AntennaUpdateBuilder<C>
[src]

Sets the query that specifies which notes to include in the antenna.

pub fn exclude(
    &mut self,
    query: impl Into<Query<String>>
) -> &mut AntennaUpdateBuilder<C>
[src]

Sets the query that specifies which notes to exclude in the antenna.

pub fn case_sensitive(
    &mut self,
    case_sensitive: bool
) -> &mut AntennaUpdateBuilder<C>
[src]

Sets whether or not the antenna is case sensitive.

pub fn exclude_replies(
    &mut self,
    exclude_replies: bool
) -> &mut AntennaUpdateBuilder<C>
[src]

Sets whether or not the antenna would exclude the reply notes.

pub fn with_files_only(
    &mut self,
    with_files_only: bool
) -> &mut AntennaUpdateBuilder<C>
[src]

Sets whether or not the antenna would only target notes with attached files.

pub fn notify(&mut self, notify: bool) -> &mut AntennaUpdateBuilder<C>[src]

Sets whether or not to be notified when a note is hit by the antenna.

impl<C> AntennaUpdateBuilder<C> where
    C: Client
[src]

pub async fn update(&'_ self) -> Result<Antenna, Error<<C as Client>::Error>>[src]

Updates the antenna.

Trait Implementations

impl<C> Clone for AntennaUpdateBuilder<C> where
    C: Clone
[src]

impl<C> Debug for AntennaUpdateBuilder<C> where
    C: Debug
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for AntennaUpdateBuilder<C> where
    C: RefUnwindSafe
[src]

impl<C> Send for AntennaUpdateBuilder<C> where
    C: Send
[src]

impl<C> Sync for AntennaUpdateBuilder<C> where
    C: Sync
[src]

impl<C> Unpin for AntennaUpdateBuilder<C> where
    C: Unpin
[src]

impl<C> UnwindSafe for AntennaUpdateBuilder<C> where
    C: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]