pub struct GctfDocumentBuilder { /* private fields */ }Implementations§
Source§impl GctfDocumentBuilder
impl GctfDocumentBuilder
pub fn new() -> Self
pub fn with_file_path(self, file_path: impl Into<String>) -> Self
pub fn endpoint(self, endpoint: impl Into<String>) -> Self
pub fn address(self, address: impl Into<String>) -> Self
pub fn request_headers(self, headers: HashMap<String, String>) -> Self
pub fn request(self, request: Value) -> Self
pub fn response(self, response: Value) -> Self
pub fn error(self, error: impl Into<String>) -> Self
pub fn tls(self, tls: HashMap<String, String>) -> Self
pub fn options(self, options: HashMap<String, String>) -> Self
pub fn proto(self, proto: HashMap<String, String>) -> Self
pub fn meta(self, meta: FileMeta) -> Self
pub fn build(self) -> GctfDocument
pub fn render(self) -> String
Trait Implementations§
Source§impl Clone for GctfDocumentBuilder
impl Clone for GctfDocumentBuilder
Source§fn clone(&self) -> GctfDocumentBuilder
fn clone(&self) -> GctfDocumentBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GctfDocumentBuilder
impl Debug for GctfDocumentBuilder
Auto Trait Implementations§
impl Freeze for GctfDocumentBuilder
impl RefUnwindSafe for GctfDocumentBuilder
impl Send for GctfDocumentBuilder
impl Sync for GctfDocumentBuilder
impl Unpin for GctfDocumentBuilder
impl UnsafeUnpin for GctfDocumentBuilder
impl UnwindSafe for GctfDocumentBuilder
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