pub struct RaysoConfigBuilder { /* private fields */ }Implementations§
Source§impl RaysoConfigBuilder
impl RaysoConfigBuilder
Sourcepub fn background(self, background: bool) -> RaysoConfigBuilder
pub fn background(self, background: bool) -> RaysoConfigBuilder
Examples found in repository?
More examples
examples/download_image.rs (line 10)
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 11)
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}pub fn dark_mode(self, dark_mode: bool) -> RaysoConfigBuilder
Sourcepub fn padding(self, padding: i32) -> RaysoConfigBuilder
pub fn padding(self, padding: i32) -> RaysoConfigBuilder
Examples found in repository?
More examples
examples/download_image.rs (line 11)
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 12)
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}pub fn theme(self, theme: &str) -> RaysoConfigBuilder
pub fn language(self, language: &str) -> RaysoConfigBuilder
Sourcepub fn code(self, code: &str) -> RaysoConfigBuilder
pub fn code(self, code: &str) -> RaysoConfigBuilder
Examples found in repository?
examples/download_image.rs (line 12)
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}More examples
examples/custom_title.rs (line 13)
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 title(self, title: &str) -> RaysoConfigBuilder
pub fn title(self, title: &str) -> RaysoConfigBuilder
Examples found in repository?
examples/custom_title.rs (line 10)
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 build(self) -> RaysoConfig
pub fn build(self) -> RaysoConfig
Examples found in repository?
More examples
examples/download_image.rs (line 13)
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 14)
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§
Source§impl Debug for RaysoConfigBuilder
impl Debug for RaysoConfigBuilder
Source§impl Default for RaysoConfigBuilder
impl Default for RaysoConfigBuilder
Source§fn default() -> RaysoConfigBuilder
fn default() -> RaysoConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RaysoConfigBuilder
impl RefUnwindSafe for RaysoConfigBuilder
impl Send for RaysoConfigBuilder
impl Sync for RaysoConfigBuilder
impl Unpin for RaysoConfigBuilder
impl UnwindSafe for RaysoConfigBuilder
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