[−][src]Struct misskey::builder::AntennaUpdateBuilder
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]
&mut self,
users: impl IntoIterator<Item = impl Into<String>>
) -> &mut AntennaUpdateBuilder<C>
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]
&mut self,
user_list: impl EntityRef<UserList>
) -> &mut AntennaUpdateBuilder<C>
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]
&mut self,
user_group: impl EntityRef<UserGroup>
) -> &mut AntennaUpdateBuilder<C>
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]
&mut self,
query: impl Into<Query<String>>
) -> &mut AntennaUpdateBuilder<C>
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]
&mut self,
query: impl Into<Query<String>>
) -> &mut AntennaUpdateBuilder<C>
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]
&mut self,
case_sensitive: bool
) -> &mut AntennaUpdateBuilder<C>
Sets whether or not the antenna is case sensitive.
pub fn exclude_replies(
&mut self,
exclude_replies: bool
) -> &mut AntennaUpdateBuilder<C>
[src]
&mut self,
exclude_replies: bool
) -> &mut AntennaUpdateBuilder<C>
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]
&mut self,
with_files_only: bool
) -> &mut AntennaUpdateBuilder<C>
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]
C: Client,
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]
C: Clone,
pub fn clone(&self) -> AntennaUpdateBuilder<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C> Debug for AntennaUpdateBuilder<C> where
C: Debug,
[src]
C: Debug,
Auto Trait Implementations
impl<C> RefUnwindSafe for AntennaUpdateBuilder<C> where
C: RefUnwindSafe,
[src]
C: RefUnwindSafe,
impl<C> Send for AntennaUpdateBuilder<C> where
C: Send,
[src]
C: Send,
impl<C> Sync for AntennaUpdateBuilder<C> where
C: Sync,
[src]
C: Sync,
impl<C> Unpin for AntennaUpdateBuilder<C> where
C: Unpin,
[src]
C: Unpin,
impl<C> UnwindSafe for AntennaUpdateBuilder<C> where
C: UnwindSafe,
[src]
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,