pub struct S2OutputConfig {
pub auth_token: String,
pub basin: String,
pub endpoint: Option<String>,
pub stream: String,
}Expand description
Configuration for writing to an S2 stream.
JSON schema
{
"description": "Configuration for writing to an S2 stream.",
"type": "object",
"required": [
"auth_token",
"basin",
"stream"
],
"properties": {
"auth_token": {
"description": "S2 authentication token.",
"type": "string"
},
"basin": {
"description": "S2 basin name.",
"type": "string"
},
"endpoint": {
"description": "Custom S2 endpoint URL (e.g., \"http://localhost:8080\").\nIf not set, uses the default S2 cloud endpoint.",
"type": [
"string",
"null"
]
},
"stream": {
"description": "S2 stream name.",
"type": "string"
}
}
}Fields§
§auth_token: StringS2 authentication token.
basin: StringS2 basin name.
endpoint: Option<String>Custom S2 endpoint URL (e.g., “http://localhost:8080”). If not set, uses the default S2 cloud endpoint.
stream: StringS2 stream name.
Implementations§
Source§impl S2OutputConfig
impl S2OutputConfig
pub fn builder() -> S2OutputConfig
Trait Implementations§
Source§impl Clone for S2OutputConfig
impl Clone for S2OutputConfig
Source§impl Debug for S2OutputConfig
impl Debug for S2OutputConfig
Source§impl<'de> Deserialize<'de> for S2OutputConfig
impl<'de> Deserialize<'de> for S2OutputConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&S2OutputConfig> for S2OutputConfig
impl From<&S2OutputConfig> for S2OutputConfig
Source§fn from(value: &S2OutputConfig) -> Self
fn from(value: &S2OutputConfig) -> Self
Converts to this type from the input type.
Source§impl From<S2OutputConfig> for S2OutputConfig
impl From<S2OutputConfig> for S2OutputConfig
Source§fn from(value: S2OutputConfig) -> Self
fn from(value: S2OutputConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for S2OutputConfig
impl Serialize for S2OutputConfig
Source§impl TryFrom<S2OutputConfig> for S2OutputConfig
impl TryFrom<S2OutputConfig> for S2OutputConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: S2OutputConfig) -> Result<Self, ConversionError>
fn try_from(value: S2OutputConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for S2OutputConfig
impl RefUnwindSafe for S2OutputConfig
impl Send for S2OutputConfig
impl Sync for S2OutputConfig
impl Unpin for S2OutputConfig
impl UnsafeUnpin for S2OutputConfig
impl UnwindSafe for S2OutputConfig
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