pub struct EndpointMetadataBuilder {
pub product: Option<String>,
pub component: Option<String>,
pub lambda_context: Option<Context>,
pub stage: Option<String>,
pub allowed_methods: Option<String>,
pub response_content_type: Option<String>,
}Fields§
§product: Option<String>§component: Option<String>§lambda_context: Option<Context>§stage: Option<String>§allowed_methods: Option<String>§response_content_type: Option<String>Implementations§
Source§impl EndpointMetadataBuilder
impl EndpointMetadataBuilder
pub fn new() -> Self
pub fn context(self, ctx: Context) -> Self
pub fn product(self, v: impl Into<String>) -> Self
pub fn component(self, v: impl Into<String>) -> Self
pub fn stage(self, v: impl Into<String>) -> Self
pub fn allowed_methods(self, v: impl Into<String>) -> Self
pub fn response_content_type(self, v: impl Into<String>) -> Self
pub fn build(self) -> Result<EndpointMetadata, Error>
Trait Implementations§
Source§impl Default for EndpointMetadataBuilder
impl Default for EndpointMetadataBuilder
Source§fn default() -> EndpointMetadataBuilder
fn default() -> EndpointMetadataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EndpointMetadataBuilder
impl RefUnwindSafe for EndpointMetadataBuilder
impl Send for EndpointMetadataBuilder
impl Sync for EndpointMetadataBuilder
impl Unpin for EndpointMetadataBuilder
impl UnsafeUnpin for EndpointMetadataBuilder
impl UnwindSafe for EndpointMetadataBuilder
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