pub struct RaysoConfig { /* private fields */ }Implementations§
Source§impl RaysoConfig
impl RaysoConfig
Sourcepub fn builder() -> RaysoConfigBuilder
pub fn builder() -> RaysoConfigBuilder
Examples found in repository?
More examples
examples/download_image.rs (line 9)
8async fn main() -> Result<(), Box<dyn std::error::Error>> {
9 let config = RaysoConfig::builder()
10 .background(false)
11 .padding(0)
12 .code(CODE)
13 .build();
14
15 println!("Generated URL: {}", config.to_url());
16
17 downloader::download(config).await?;
18
19 Ok(())
20}examples/custom_title.rs (line 9)
8async fn main() -> Result<(), Box<dyn std::error::Error>> {
9 let config = RaysoConfig::builder()
10 .title("Bubble sort")
11 .background(false)
12 .padding(8)
13 .code(CODE)
14 .build();
15
16 println!("Generated URL: {}", config.to_url());
17
18 downloader::download(config).await?;
19
20 Ok(())
21}Sourcepub fn to_url(&self) -> String
pub fn to_url(&self) -> String
Examples found in repository?
More examples
examples/download_image.rs (line 15)
8async fn main() -> Result<(), Box<dyn std::error::Error>> {
9 let config = RaysoConfig::builder()
10 .background(false)
11 .padding(0)
12 .code(CODE)
13 .build();
14
15 println!("Generated URL: {}", config.to_url());
16
17 downloader::download(config).await?;
18
19 Ok(())
20}examples/custom_title.rs (line 16)
8async fn main() -> Result<(), Box<dyn std::error::Error>> {
9 let config = RaysoConfig::builder()
10 .title("Bubble sort")
11 .background(false)
12 .padding(8)
13 .code(CODE)
14 .build();
15
16 println!("Generated URL: {}", config.to_url());
17
18 downloader::download(config).await?;
19
20 Ok(())
21}Trait Implementations§
Auto Trait Implementations§
impl Freeze for RaysoConfig
impl RefUnwindSafe for RaysoConfig
impl Send for RaysoConfig
impl Sync for RaysoConfig
impl Unpin for RaysoConfig
impl UnwindSafe for RaysoConfig
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