pub struct GetAtHomeServerBuilder {
chapter_id: Option<Uuid>,
force_port_443: Option<bool>,
/* private fields */
}
Expand description
Builder for GetAtHomeServer
.
Fields§
§chapter_id: Option<Uuid>
§force_port_443: Option<bool>
Force selecting from MangaDex@Home servers that use the standard HTTPS port 443.
While the conventional port for HTTPS traffic is 443 and servers are encouraged to use it, it is not a hard requirement as it technically isn’t anything special.
However, some misbehaving school/office network will at time block traffic to non-standard ports, and setting this flag to true will ensure selection of a server that uses these.
Implementations§
Source§impl GetAtHomeServerBuilder
impl GetAtHomeServerBuilder
pub fn chapter_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn force_port_443<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn force_port_443<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Force selecting from MangaDex@Home servers that use the standard HTTPS port 443.
While the conventional port for HTTPS traffic is 443 and servers are encouraged to use it, it is not a hard requirement as it technically isn’t anything special.
However, some misbehaving school/office network will at time block traffic to non-standard ports, and setting this flag to true will ensure selection of a server that uses these.
Sourcepub fn build(&self) -> Result<GetAtHomeServer, BuilderError>
pub fn build(&self) -> Result<GetAtHomeServer, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl GetAtHomeServerBuilder
impl GetAtHomeServerBuilder
pub async fn send(&self) -> Result<Limited<AtHomeServer>>
Trait Implementations§
Source§impl Clone for GetAtHomeServerBuilder
impl Clone for GetAtHomeServerBuilder
Source§fn clone(&self) -> GetAtHomeServerBuilder
fn clone(&self) -> GetAtHomeServerBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more