pub struct App { /* private fields */ }Expand description
Represents an application that can be registered with a mastodon instance
Implementations§
Source§impl App
impl App
Sourcepub fn builder<'a>() -> AppBuilder<'a>
pub fn builder<'a>() -> AppBuilder<'a>
Get an AppBuilder object
// Example
use mastodon_async::apps::App;
let mut builder = App::builder();Sourcepub fn scopes(&self) -> &Scopes
pub fn scopes(&self) -> &Scopes
Retrieve the list of scopes that apply to this App
// Example
use mastodon_async::{apps::App, scopes::Scopes};
let mut builder = App::builder();
builder.client_name("mastodon-async-test");
let app = builder.build().unwrap();
let scopes = app.scopes();
assert_eq!(scopes, &Scopes::read_all());Trait Implementations§
Source§impl<'a> TryInto<App> for AppBuilder<'a>
impl<'a> TryInto<App> for AppBuilder<'a>
impl StructuralPartialEq for App
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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