pub struct AxOpts {
pub url: Url,
pub manifest: AppManifest,
}
Expand description
Ax
’s configuration options.
Fields§
§url: Url
§manifest: AppManifest
Implementations§
Source§impl AxOpts
impl AxOpts
Sourcepub fn url(url: &str) -> Result<Self>
pub fn url(url: &str) -> Result<Self>
Create an AxOpts
with a custom URL and the default application manifest.
This function is similar manually constructing the following:
AxOpts {
url: "https://your.host:1234".parse().unwrap(),
..Default::default()
}.into()
Sourcepub fn manifest(manifest: AppManifest) -> Result<Self>
pub fn manifest(manifest: AppManifest) -> Result<Self>
Create an AxOpts
with a custom application manifest and the default URL.
This function is similar manually constructing the following:
AxOpts {
manifest: AppManifest::trial(
app_id!("com.example.app"),
"Example manifest".to_string(),
"0.1.0".to_string()
).unwrap(),
..Default::default()
}.into()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AxOpts
impl !RefUnwindSafe for AxOpts
impl Send for AxOpts
impl Sync for AxOpts
impl Unpin for AxOpts
impl !UnwindSafe for AxOpts
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